Package org.opennms.protocols.xml.config
Class XmlObject
- java.lang.Object
-
- org.opennms.protocols.xml.config.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 Summary
Constructors Constructor Description XmlObject()
Instantiates a new XML object.XmlObject(java.lang.String name, AttributeType dataType)
Instantiates a new XML object.XmlObject(XmlObject copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlObject
clone()
int
compareTo(XmlObject obj)
boolean
equals(java.lang.Object obj)
AttributeType
getDataType()
Gets the data type.java.lang.String
getName()
Gets the name.java.lang.String
getXpath()
Gets the XPath.void
setDataType(AttributeType dataType)
Sets the data type.void
setName(java.lang.String name)
Sets the name.void
setXpath(java.lang.String xpath)
Sets the XPath.
-
-
-
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 namedataType
- 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 interfacejava.lang.Comparable<XmlObject>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
clone
public XmlObject clone()
- Overrides:
clone
in classjava.lang.Object
-
-