|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.control.Controller
public class Controller
Reads the configuration and generates the output accordingly.
| Constructor Summary | |
|---|---|
Controller()
|
|
| Method Summary | |
|---|---|
protected void |
createOutputFilename(Output output,
ControllerState controllerState)
Creates the output file name and sets it in the output. |
protected void |
initLogging()
Initializes the Logging. |
protected void |
processGenerationUnit(ControllerState controllerState,
UnitConfiguration unitConfiguration)
Processes a unit of generation. |
void |
run(List<UnitDescriptor> unitDescriptors)
Executes the controller action. |
SourceElement |
transformSource(SourceElement rootElement,
List<SourceTransformerDefinition> transformerDefinitions,
ControllerState controllerState)
Applies all tarnsformer definitions to the current source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Controller()
| Method Detail |
|---|
public void run(List<UnitDescriptor> unitDescriptors)
throws GeneratorException
unitDescriptors - the units of generation to execute.
ControllerException - if a ControllerException occurs during
processing.
ConfigurationException - if a ConfigurationException occurs during
processing.
GeneratorException - if a OutletException occurs during
processing.
IOException - if a IOException occurs during processing.protected void initLogging()
protected void processGenerationUnit(ControllerState controllerState,
UnitConfiguration unitConfiguration)
throws GeneratorException
controllerState - the controller state, not null.unitConfiguration - the configuration of the generation unit
to process, not null.
GeneratorException - if a generation error occurs.
protected void createOutputFilename(Output output,
ControllerState controllerState)
throws GeneratorException
output or is given explicitly (in the latter case
nothing needs to be done).
controllerState - the controller state, not null.output - The output to process, not null.
ConfigurationException - if an incorrect configuration is
encountered, e.g. if neither filename nor filenameOutlet is
set in output.
GeneratorException - if an error occurs during generation of
the output filename.
public SourceElement transformSource(SourceElement rootElement,
List<SourceTransformerDefinition> transformerDefinitions,
ControllerState controllerState)
throws SourceTransformerException,
SourceException
rootElement - the root element of the source to transform,
not null.transformerDefinitions - the transformer definitions to apply,
not null.controllerState - the current controller state, not null.
SourceTransformerException
SourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||