Class ApplyAction
java.lang.Object
org.apache.torque.generator.control.action.ApplyAction
- All Implemented Interfaces:
MergepointAction
Applies an outlet to the matching element.
The output of the outlet is appended to the output.
-
Constructor Summary
ConstructorsConstructorDescriptionApplyAction(String path, String outletName, Boolean acceptNotSet) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(ControllerState controllerState) Applies an outlet to the matching element.inthashCode()toString()
-
Constructor Details
-
ApplyAction
Constructor.- Parameters:
path- The path to the source element to be processed.nullmeans ".".outletName- the name of the outlet to apply.acceptNotSet- true if no error should be thrown if no element matches the given path, true if an error should be thrown in such a case. null means true.
-
-
Method Details
-
execute
Applies an outlet to the matching element. The output of the outlet is appended to the output. ${...} Tokens are replaced within outletName and path.- Specified by:
executein interfaceMergepointAction- Parameters:
controllerState- The current state of the controller.- Returns:
- The value to insert into the mergepoint, not null.
- Throws:
GeneratorException- if an error occurs during generation.
-
toString
-
hashCode
public int hashCode() -
equals
-