Klasse StringInputOutlet
java.lang.Object
org.apache.torque.generator.outlet.OutletImpl
org.apache.torque.generator.outlet.java.OutletWithoutMergepoints
org.apache.torque.generator.outlet.java.StringInputOutlet
- Alle implementierten Schnittstellen:
Outlet
- Bekannte direkte Unterklassen:
CamelbackOutlet
,ConstantNameOutlet
,PackageToPathOutlet
A base class for a outlet which takes a String as input
(not a Source Element as a normal outlet would).
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungStringInputOutlet
(QualifiedName qualifiedName) Constructs a singleInputOutlet. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected 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.Von Klasse geerbte Methoden org.apache.torque.generator.outlet.java.OutletWithoutMergepoints
addMergepointMapping, getMergepointMapping
Von Klasse geerbte Methoden org.apache.torque.generator.outlet.OutletImpl
afterExecute, beforeExecute, execute, getInputClass, getInputElementName, getMergepointMappings, getName, getVariable, mergepoint, setInputClass, setInputElementName, setMergepointMapping, setVariable, setVariable, toString
-
Konstruktordetails
-
StringInputOutlet
Constructs a singleInputOutlet.- Parameter:
qualifiedName
- the name of the outlet.
-
-
Methodendetails
-
setInputValue
Sets the input value directly.- Parameter:
inputValue
- the input value, or null if the direct input value should not be used.
-
setInputOption
Sets the name of the option which should be used as input.- Parameter:
inputOption
- the name of the option which contains the input, or null if no option should be used as input.
-
setInputVariable
Sets the name of the variable which should be used as input.- Parameter:
inputVariable
- the name of the variable which should be used as input, or null if no variable should be used as input.
-
setInputSourceElement
Sets the name of the source element which contains the attribute which should be used as input.- Parameter:
inputSourceElement
- the name of the source element, or null if no source element should be used as input.
-
setSourceElementAttribute
Sets the name of the source element attribute from which the input should be read. Only used if inputsourceElement is not null.- Parameter:
sourceElementAttribute
- the attribute from which the input is read.
-
getInput
Retrieves the input from the different possibilities nputValue, inputOption, inputVariable, or inputSourceElement.- Parameter:
controllerState
- the current controller state.- Gibt zurück:
- the retrieved value, not null.
- Löst aus:
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)
-