Class TraverseAllAction
java.lang.Object
org.apache.torque.generator.control.action.TraverseAllAction
- All Implemented Interfaces:
MergepointAction
Traverses all matching elements, and applies a outlet to each matching
element. The output of each outlet is appended to the output.
-
Constructor Summary
ConstructorsConstructorDescriptionTraverseAllAction(String elementsToTraverseName, String outletName, Boolean acceptEmpty) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(ControllerState controllerState) Traverses all matching elements, and applies an outlet to each matching element.inthashCode()toString()
-
Constructor Details
-
TraverseAllAction
Constructor.- Parameters:
elementsToTraverseName- the elements to traverse, not null.outletName- the name of the outlet to be invoked for each element, not null.acceptEmpty- true if it is correct if no matching elements are found, false to throw an error if no matching elements are found, null means true.
-
-
Method Details
-
execute
Traverses all matching elements, and applies an outlet to each matching element. The output of each outlet is appended to the output. ${...} Tokens are replaced within outletName and elementsToTraverseName.- 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
-