public class OptionOutlet extends OutletWithoutMergepoints
Constructor and Description |
---|
OptionOutlet(QualifiedName name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
OutletResult |
execute(ControllerState controllerState)
Generates the output for this template into the Generated object.
|
void |
setOption(String option)
Sets the name of the option to output.
|
addMergepointMapping, getMergepointMapping
afterExecute, beforeExecute, getInputClass, getInputElementName, getMergepointMappings, getName, getVariable, mergepoint, setInputClass, setInputElementName, setMergepointMapping, setVariable, setVariable, toString
public OptionOutlet(QualifiedName name)
name
- the name of the outlet.public OutletResult execute(ControllerState controllerState) throws GeneratorException
Outlet
execute
in interface Outlet
execute
in class OutletImpl
controllerState
- the current controller state, not null.GeneratorException
- if generation fails.public void setOption(String option)
option
- the name of the option.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.