Package org.opennms.protocols.xml.config
Class XmlObject
- java.lang.Object
-
- org.opennms.protocols.xml.config.XmlObject
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<XmlObject>
public class XmlObject extends Object implements Serializable, Comparable<XmlObject>, Cloneable
The Class XmlObject.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlObjectclone()intcompareTo(XmlObject obj)booleanequals(Object obj)AttributeTypegetDataType()Gets the data type.StringgetName()Gets the name.StringgetXpath()Gets the XPath.voidsetDataType(AttributeType dataType)Sets the data type.voidsetName(String name)Sets the name.voidsetXpath(String xpath)Sets the XPath.
-
-
-
Constructor Detail
-
XmlObject
public XmlObject()
Instantiates a new XML object.
-
XmlObject
public XmlObject(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 String getName()
Gets the name.- Returns:
- the name
-
setName
public void setName(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 String getXpath()
Gets the XPath.- Returns:
- the XPath
-
setXpath
public void setXpath(String xpath)
Sets the XPath.- Parameters:
xpath- the new XPath
-
compareTo
public int compareTo(XmlObject obj)
- Specified by:
compareToin interfaceComparable<XmlObject>
-
-