Class 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.
    • Constructor Detail

      • Variable

        public Variable​(QualifiedName name,
                        Object value,
                        Variable.Scope scope)
        Constructor.
        Parameters:
        name - the name of the variable, not null.
        value - the value of the variable.
        scope - the scope of the variable, not null.
    • Method Detail

      • getName

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

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

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object