Klasse Variable

java.lang.Object
org.apache.torque.generator.variable.Variable

public class Variable extends Object
A variable which can be used to transport data in and between outlets. A variable has a name (possibly with a name space), a value (which may be null), and a scope (determining in which outlets this variable will be visible). if the scope is CHILDREN, the outlet in which this variable was set is also stored in the variable.
  • Konstruktordetails

    • Variable

      public Variable(QualifiedName name, Object value, Variable.Scope scope)
      Constructor.
      Parameter:
      name - the name of the variable, not null.
      value - the value of the variable.
      scope - the scope of the variable, not null.
  • Methodendetails

    • getName

      public QualifiedName getName()
      Returns the name of the variable.
      Gibt zurück:
      the name of the variable, not null.
    • getValue

      public Object getValue()
      Returns the value of the variable,
      Gibt zurück:
      the value of the variable, may be null.
    • setValue

      public void setValue(Object value)
      Sets the value of the variable.
      Parameter:
      value - the value to set in the variable.
    • getScope

      public Variable.Scope getScope()
      Returns the scope of the variable.
      Gibt zurück:
      the scope of the variable, not null.
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object
    • toString

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