|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.outlet.OutletImpl org.apache.torque.generator.outlet.java.OutletWithoutMergepoints org.apache.torque.generator.outlet.java.StringInputOutlet
public abstract class StringInputOutlet
A base class for a outlet which takes a String as input (not a Source Element as a normal outlet would).
Constructor Summary | |
---|---|
StringInputOutlet(QualifiedName qualifiedName)
Constructs a singleInputOutlet. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.torque.generator.outlet.java.OutletWithoutMergepoints |
---|
addMergepointMapping, getMergepointMapping |
Methods inherited from class org.apache.torque.generator.outlet.OutletImpl |
---|
afterExecute, beforeExecute, execute, getInputElementName, getMergepointMappings, getName, getVariable, mergepoint, setInputElementName, setMergepointMapping, setVariable, setVariable, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringInputOutlet(QualifiedName qualifiedName)
qualifiedName
- the name of the outlet.Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |