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 XmlObject
clone()
int
compareTo(XmlObject obj)
boolean
equals(Object obj)
AttributeType
getDataType()
Gets the data type.String
getName()
Gets the name.List<XmlMapping>
getXmlMappings()
String
getXpath()
Gets the XPath.String
map(String from)
void
setDataType(AttributeType dataType)
Sets the data type.void
setName(String name)
Sets the name.void
setXmlMappings(List<XmlMapping> xmlMappings)
void
setXpath(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:
compareTo
in interfaceComparable<XmlObject>
-
getXmlMappings
public List<XmlMapping> getXmlMappings()
-
setXmlMappings
public void setXmlMappings(List<XmlMapping> xmlMappings)
-
-