Class Variable


  • public class Variable
    extends java.lang.Object
    • Field Detail

      • name

        protected java.lang.String name
      • value

        protected java.lang.Object value
      • readOnly

        protected boolean readOnly
      • deprecationInfo

        protected java.lang.String deprecationInfo
    • Constructor Detail

      • Variable

        public Variable()
      • Variable

        public Variable​(java.util.Map.Entry<java.lang.String,​?> entry)
        Parameters:
        entry -
        Since:
        1.6
      • Variable

        public Variable​(java.lang.String name,
                        java.lang.Object value,
                        EolType type,
                        boolean readOnly)
      • Variable

        public Variable​(java.lang.String name,
                        EolType type)
      • Variable

        public Variable​(java.lang.String name,
                        java.lang.Object value,
                        EolType type)
      • Variable

        public Variable​(Variable v)
        Creates a shallow copy of the given Variable.
        Parameters:
        v - The variable to shallow copy from
        Since:
        1.6
    • Method Detail

      • createReadOnlyVariable

        public static Variable createReadOnlyVariable​(java.lang.String name,
                                                      java.lang.Object value)
      • createReadOnlyVariable

        public static Variable createReadOnlyVariable​(java.util.Map.Entry<java.lang.String,​?> entry)
        Parameters:
        entry -
        Returns:
        Since:
        1.6
      • dispose

        public void dispose()
      • getValue

        public java.lang.Object getValue()
      • setValueBruteForce

        public void setValueBruteForce​(java.lang.Object newValue)
      • setType

        public void setType​(EolType type)
      • getType

        public EolType getType()
      • isReadOnly

        public boolean isReadOnly()
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getDeprecationInfo

        public java.lang.String getDeprecationInfo()
      • setDeprecationInfo

        public void setDeprecationInfo​(java.lang.String deprecationInfo)
      • clone

        public Variable clone()
        Overrides:
        clone in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object