public class ApplyAction extends Object implements MergepointAction
Constructor and Description |
---|
ApplyAction(String path,
String outletName,
Boolean acceptNotSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
OutletResult |
execute(ControllerState controllerState)
Applies an outlet to the matching element.
|
int |
hashCode() |
String |
toString() |
public ApplyAction(String path, String outletName, Boolean acceptNotSet)
path
- The path to the source element to be processed.
null
means ".".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.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.