Class XmlOutlet
java.lang.Object
org.apache.torque.generator.outlet.OutletImpl
org.apache.torque.generator.outlet.java.OutletWithoutMergepoints
org.apache.torque.generator.outlet.java.XmlOutlet
- All Implemented Interfaces:
Outlet
Outputs the source tree as XML.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ControllerState controllerState) Generates the output for this template into the Generated object.booleanReturns whether id attributes are automatically created in the output.voidsetCreateIdAttributes(boolean createIdAttributes) Sets whether id attributes should be automatically created in the 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
-
XmlOutlet
Constructor.- Parameters:
name- the qualified 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.
-
isCreateIdAttributes
public boolean isCreateIdAttributes()Returns whether id attributes are automatically created in the output.- Returns:
- true if id attributes are automatically created, false otherwise.
-
setCreateIdAttributes
public void setCreateIdAttributes(boolean createIdAttributes) Sets whether id attributes should be automatically created in the output.- Parameters:
createIdAttributes- true if id attributes should be automatically created, false otherwise.
-