public abstract class PrinterWalkerEngine extends ModelWalkerEngine implements PrinterEngine
DISABLE_BACKENDS, NO_BACKEND
Modifier | Constructor and Description |
---|---|
protected |
PrinterWalkerEngine(java.lang.String engineId,
EntityType inputType,
EntityType outputType,
ModelWalker... walkers)
Constructs object with the specified identifier, input/output types,
walkers.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
getOutFileExt()
Returns the extension for generated files.
|
protected abstract Parameter |
getOutFileName() |
Entity |
getOutput()
Returns engine output entity.
|
void |
initialize(java.util.Map<EntityType,Entity> inputs)
Initializes engine with the specified inputs.
|
protected abstract void |
initVisitor(java.lang.String fileName)
Initializes visitor with the spcified file name.
|
getInitVisitor, getWalkers, setWalkers, start
addBackend, addInputType, addParameter, deactivateBackends, debugWrite, debugWrite, defines, disableAllBackends, enableAllBackends, equals, getBackends, getId, getInputEntity, getInputTypes, getLogger, getOptionalInputEntity, getOutputType, getParameters, hashCode, isDebugMode, parseCommandLine, setDebugMode, setOutputType, start, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDefaultFileName
protected PrinterWalkerEngine(java.lang.String engineId, EntityType inputType, EntityType outputType, ModelWalker... walkers)
engineId
- Engine identifier.inputType
- Engine model input type.outputType
- Engine model output type.walkers
- Model walkers.java.lang.IllegalArgumentException
- when walkers array is null
.protected abstract Parameter getOutFileName()
protected abstract java.lang.String getOutFileExt()
protected abstract void initVisitor(java.lang.String fileName)
fileName
- The string name for output file.public void initialize(java.util.Map<EntityType,Entity> inputs)
ModelWalkerEngine
initialize
in class ModelWalkerEngine
inputs
- Engine inputs.public Entity getOutput()
ModelWalkerEngine
getOutput
in class ModelWalkerEngine