Klasse TraverseAllAction

java.lang.Object
org.apache.torque.generator.control.action.TraverseAllAction
Alle implementierten Schnittstellen:
MergepointAction

public class TraverseAllAction extends Object implements MergepointAction
Traverses all matching elements, and applies a outlet to each matching element. The output of each outlet is appended to the output.
  • Konstruktordetails

    • TraverseAllAction

      public TraverseAllAction(String elementsToTraverseName, String outletName, Boolean acceptEmpty)
      Constructor.
      Parameter:
      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.
  • Methodendetails

    • execute

      public OutletResult execute(ControllerState controllerState) throws GeneratorException
      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.
      Angegeben von:
      execute in Schnittstelle MergepointAction
      Parameter:
      controllerState - The current state of the controller.
      Gibt zurück:
      The value to insert into the mergepoint, not null.
      Löst aus:
      GeneratorException - if an error occurs during generation.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object