public class TraverseAllAction extends Object implements MergepointAction
Constructor and Description |
---|
TraverseAllAction(String elementsToTraverseName,
String outletName,
Boolean acceptEmpty)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
OutletResult |
execute(ControllerState controllerState)
Traverses all matching elements, and applies an outlet to each matching
element.
|
int |
hashCode() |
String |
toString() |
public TraverseAllAction(String elementsToTraverseName, String outletName, Boolean acceptEmpty)
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.public OutletResult execute(ControllerState controllerState) throws GeneratorException
execute
in interface MergepointAction
controllerState
- The current state of the controller.GeneratorException
- if an error occurs during generation.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.