Class XmlObject

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<XmlObject>

    public class XmlObject
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<XmlObject>, java.lang.Cloneable
    The Class XmlObject.
    Author:
    Alejandro Galue
    See Also:
    Serialized Form
    • Constructor Detail

      • XmlObject

        public XmlObject()
        Instantiates a new XML object.
      • XmlObject

        public XmlObject​(java.lang.String name,
                         AttributeType dataType)
        Instantiates a new XML object.
        Parameters:
        name - the object name
        dataType - the data type
      • XmlObject

        public XmlObject​(XmlObject copy)
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name.
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Sets the name.
        Parameters:
        name - the new name
      • getDataType

        public AttributeType getDataType()
        Gets the data type.
        Returns:
        the data type
      • setDataType

        public void setDataType​(AttributeType dataType)
        Sets the data type.
        Parameters:
        dataType - the new data type
      • getXpath

        public java.lang.String getXpath()
        Gets the XPath.
        Returns:
        the XPath
      • setXpath

        public void setXpath​(java.lang.String xpath)
        Sets the XPath.
        Parameters:
        xpath - the new XPath
      • compareTo

        public int compareTo​(XmlObject obj)
        Specified by:
        compareTo in interface java.lang.Comparable<XmlObject>
      • equals

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

        public XmlObject clone()
        Overrides:
        clone in class java.lang.Object