public class OptionAction extends Object implements MergepointAction
Constructor and Description |
---|
OptionAction(String option,
Boolean acceptNotSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
OutletResult |
execute(ControllerState controllerState)
Returns the value of the configured option.
|
String |
toString() |
public OptionAction(String option, Boolean acceptNotSet)
option
- the name of the option. May or may not be prefixed
with a namespace (if no namespace is used, the namespace of the
current outlet is used).acceptNotSet
- true if it is acceptable that the option is not set,
false if it is an error that the option is not set.
null means true.public OutletResult execute(ControllerState controllerState) throws GeneratorException
execute
in interface MergepointAction
controllerState
- the current state of the controller.GeneratorException
- if acceptNotSet is false and the option
is not set.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.