public abstract class AbstractConverterEngine extends NodeEngine implements EngineRequestTransformer.RequireEngineRequestTransformer
This engine
defines the base treatments to execute when a
Nut
should by converted from a NutType
to another.
When a NutType
is changed, the engine chain related to the type is executed and the result is
returned. Contrary to engines that instect
, the nut won't be added
as a referenced nut (ConvertibleNut.getReferencedNuts()
).
Constructor and Description |
---|
AbstractConverterEngine(Boolean convert,
Boolean asynchronous)
Builds a new instance.
|
Modifier and Type | Method and Description |
---|---|
EngineType |
getEngineType()
Gets the type of engine.
|
List<ConvertibleNut> |
internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
protected abstract NutType |
targetNutType()
Returns the
NutType corresponding to the converted nut. |
Boolean |
works()
Returns a flag indicating if the engine is configured to do something or not.
|
callNextEngine, chain, getNext, getNutTypes, getPrevious, parse, setNext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform
public List<ConvertibleNut> internalParse(EngineRequest request) throws WuicException
Internal method that parses eventually called by NodeEngine.parse(EngineRequest)
method during its invocation.
internalParse
in class Engine
request
- the request with files to parseWuicException
- if any kind of error occurspublic final EngineType getEngineType()
Gets the type of engine.
getEngineType
in class Engine
public Boolean works()
Returns a flag indicating if the engine is configured to do something or not.
Copyright © 2012-2015. All Rights Reserved.