Class Property

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Property​(java.lang.String name)
      Creates new Property without a value (null).
      protected Property​(java.lang.String name, java.lang.Object aValue)
      Creates a new Property with a given name and given value.
    • Constructor Detail

      • Property

        protected Property​(java.lang.String name)
        Creates new Property without a value (null).
        Parameters:
        name - a String object.
      • Property

        protected Property​(java.lang.String name,
                           java.lang.Object aValue)
        Creates a new Property with a given name and given value.
        Parameters:
        name - a String object.
        aValue - a Object object.
    • Method Detail

      • getValue

        public java.lang.Object getValue()

        Getter for the field value.

        Returns:
        the value of this property.
      • setValue

        public void setValue​(java.lang.Object o)
        Sets the value of this Property.
        Parameters:
        o - object to set
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getName

        protected java.lang.String getName()

        getName.

        Returns:
        the name of the property
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException

        clone.

        Overrides:
        clone in class DataHolder
        Returns:
        a Object object.
        Throws:
        java.lang.CloneNotSupportedException - if any.
      • cloneAs

        public Property cloneAs​(java.lang.String newName)
                         throws java.lang.CloneNotSupportedException
        Creates a copy of this property with a new name.
        Parameters:
        newName - a String object.
        Returns:
        created property with new name
        Throws:
        java.lang.CloneNotSupportedException - if any.
      • cloneValue

        protected abstract java.lang.Object cloneValue()
                                                throws java.lang.CloneNotSupportedException

        cloneValue.

        Returns:
        a Object object.
        Throws:
        java.lang.CloneNotSupportedException - if any.
      • toXMLNode

        public net.anotheria.util.xml.XMLNode toXMLNode()
        Creates an xml node for export.
        Overrides:
        toXMLNode in class DataHolder
        Returns:
        new XMLNode object