Klasse SourceElementAttributeAction

java.lang.Object
org.apache.torque.generator.control.action.SourceElementAttributeAction
Alle implementierten Schnittstellen:
MergepointAction

public class SourceElementAttributeAction extends Object implements MergepointAction
Applies an outlet to a given source element.
  • Konstruktordetails

    • SourceElementAttributeAction

      public SourceElementAttributeAction(String element, String attributeName, Boolean acceptNotSet)
      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

      public OutletResult execute(ControllerState controllerState) throws GeneratorException
      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 Schnittstelle MergepointAction
      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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object