Class OptionOutlet
java.lang.Object
org.apache.torque.generator.outlet.OutletImpl
org.apache.torque.generator.outlet.java.OutletWithoutMergepoints
org.apache.torque.generator.outlet.java.OptionOutlet
- All Implemented Interfaces:
Outlet
Writes an option to the output.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ControllerState controllerState) Generates the output for this template into the Generated object.voidSets the name of the option to output.Methods inherited from class org.apache.torque.generator.outlet.java.OutletWithoutMergepoints
addMergepointMapping, getMergepointMappingMethods inherited from class org.apache.torque.generator.outlet.OutletImpl
afterExecute, beforeExecute, getInputClass, getInputElementName, getMergepointMappings, getName, getVariable, mergepoint, setInputClass, setInputElementName, setMergepointMapping, setVariable, setVariable, toString
-
Constructor Details
-
OptionOutlet
Constructor.- Parameters:
name- the name of the outlet.
-
-
Method Details
-
execute
Description copied from interface:OutletGenerates the output for this template into the Generated object.- Specified by:
executein interfaceOutlet- Specified by:
executein classOutletImpl- Parameters:
controllerState- the current controller state, not null.- Returns:
- the output of the Outlet.
- Throws:
GeneratorException- if generation fails.
-
setOption
Sets the name of the option to output.- Parameters:
option- the name of the option.
-