public abstract class StringInputOutlet extends OutletWithoutMergepoints
| Constructor and Description |
|---|
StringInputOutlet(QualifiedName qualifiedName)
Constructs a singleInputOutlet.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getInput(ControllerState controllerState)
Retrieves the input from the different possibilities nputValue,
inputOption, inputVariable, or inputSourceElement.
|
void |
setInputOption(String inputOption)
Sets the name of the option which should be used as input.
|
void |
setInputSourceElement(String inputSourceElement)
Sets the name of the source element which contains the attribute
which should be used as input.
|
void |
setInputValue(String inputValue)
Sets the input value directly.
|
void |
setInputVariable(String inputVariable)
Sets the name of the variable which should be used as input.
|
void |
setSourceElementAttribute(String sourceElementAttribute)
Sets the name of the source element attribute from which the input
should be read.
|
addMergepointMapping, getMergepointMappingafterExecute, beforeExecute, execute, getInputClass, getInputElementName, getMergepointMappings, getName, getVariable, mergepoint, setInputClass, setInputElementName, setMergepointMapping, setVariable, setVariable, toStringpublic StringInputOutlet(QualifiedName qualifiedName)
qualifiedName - the name of the outlet.public void setInputValue(String inputValue)
inputValue - the input value, or null if the direct input value
should not be used.public void setInputOption(String inputOption)
inputOption - the name of the option which contains the input,
or null if no option should be used as input.public void setInputVariable(String inputVariable)
inputVariable - the name of the variable which should be used as
input, or null if no variable should be used as input.public void setInputSourceElement(String inputSourceElement)
inputSourceElement - the name of the source element, or null if
no source element should be used as input.public void setSourceElementAttribute(String sourceElementAttribute)
sourceElementAttribute - the attribute from which the input is
read.protected String getInput(ControllerState controllerState) throws GeneratorException
controllerState - the current controller state.GeneratorException - if no possibility or more than one possibility
is chosen, or if the desired input is not set(except when a
variable is not set or set to null, this results in "" being
returned)Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.