Klasse SourceElementAttributeAction
java.lang.Object
org.apache.torque.generator.control.action.SourceElementAttributeAction
- Alle implementierten Schnittstellen:
MergepointAction
Applies an outlet to a given source element.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSourceElementAttributeAction
(String element, String attributeName, Boolean acceptNotSet) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungexecute
(ControllerState controllerState) Returns the value of the configured attribute of the configured source element. ${...}toString()
-
Konstruktordetails
-
SourceElementAttributeAction
Constructor.- Parameter:
element
- the SourcePath to the element, not null.attributeName
- The name of the attribute to evaluate, or null to access the attribute with name null.acceptNotSet
- true if the attribute may not exist, false if it is an error that the attribute does not exist, null means true.
-
-
Methodendetails
-
execute
Returns the value of the configured attribute of the configured source element. ${...} Tokens are replaced within the element path and the attribute name.- Angegeben von:
execute
in SchnittstelleMergepointAction
- Parameter:
controllerState
- the current state of the controller.- Gibt zurück:
- The value of the attribute, or the empty String if acceptNotSet is true and the attribute is not set.
- Löst aus:
GeneratorException
- if acceptNotSet is false and either no source element can be found or the attribute is not set.
-
toString
-