Package org.opennms.protocols.xml.config
Class XmlGroup
- java.lang.Object
-
- org.opennms.protocols.xml.config.XmlGroup
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<XmlGroup>
public class XmlGroup extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<XmlGroup>, java.lang.Cloneable
The Class XmlGroup.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddXmlObject(XmlObject xmlObject)Adds a new XML object.XmlGroupclone()intcompareTo(XmlGroup obj)booleanequals(java.lang.Object obj)java.lang.StringgetIfType()Gets the if type.java.lang.StringgetKeyXpath()Gets the key XPath (for resource instance).java.lang.StringgetName()Gets the name.java.lang.StringgetResourceType()Gets the resource type.java.lang.StringgetResourceXpath()Gets the resource XPath.java.lang.StringgetTimestampFormat()Gets the timestamp format.java.lang.StringgetTimestampXpath()Gets the timestamp XPath.java.util.List<XmlObject>getXmlObjects()Gets the XML objects.XmlResourceKeygetXmlResourceKey()Gets the XML resource key.booleanhasMultipleResourceKey()Checks for multiple resource key.voidremoveObjectByName(java.lang.String name)Removes a XML object by name.voidremoveXmlObject(XmlObject xmlObject)Removes a XML object.voidsetKeyXpath(java.lang.String keyXpath)Sets the key XPath.voidsetName(java.lang.String name)Sets the name.voidsetResourceType(java.lang.String resourceType)Sets the resource type.voidsetResourceXpath(java.lang.String resourceXpath)Sets the resource XPath.voidsetTimestampFormat(java.lang.String timestampFormat)Sets the timestamp format.voidsetTimestampXpath(java.lang.String timestampXpath)Sets the timestamp XPath.voidsetXmlObjects(java.util.List<XmlObject> xmlObjects)Sets the XML objects.voidsetXmlResourceKey(XmlResourceKey xmlResourceKey)Sets the XML resource key.
-
-
-
Constructor Detail
-
XmlGroup
public XmlGroup()
-
XmlGroup
public XmlGroup(XmlGroup 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
-
getXmlObjects
public java.util.List<XmlObject> getXmlObjects()
Gets the XML objects.- Returns:
- the XML objects
-
setXmlObjects
public void setXmlObjects(java.util.List<XmlObject> xmlObjects)
Sets the XML objects.- Parameters:
xmlObjects- the new XML objects
-
addXmlObject
public void addXmlObject(XmlObject xmlObject)
Adds a new XML object.- Parameters:
xmlObject- the XML object
-
removeXmlObject
public void removeXmlObject(XmlObject xmlObject)
Removes a XML object.- Parameters:
xmlObject- the XML object
-
removeObjectByName
public void removeObjectByName(java.lang.String name)
Removes a XML object by name.- Parameters:
name- the XML object name
-
getResourceType
public java.lang.String getResourceType()
Gets the resource type.- Returns:
- the resource type
-
setResourceType
public void setResourceType(java.lang.String resourceType)
Sets the resource type.- Parameters:
resourceType- the new resource type
-
getResourceXpath
public java.lang.String getResourceXpath()
Gets the resource XPath.- Returns:
- the resource XPath
-
setResourceXpath
public void setResourceXpath(java.lang.String resourceXpath)
Sets the resource XPath.- Parameters:
resourceXpath- the new resource XPath
-
getKeyXpath
public java.lang.String getKeyXpath()
Gets the key XPath (for resource instance).- Returns:
- the key XPath
-
setKeyXpath
public void setKeyXpath(java.lang.String keyXpath)
Sets the key XPath.- Parameters:
keyXpath- the new key XPath
-
getTimestampXpath
public java.lang.String getTimestampXpath()
Gets the timestamp XPath.- Returns:
- the timestamp XPath
-
setTimestampXpath
public void setTimestampXpath(java.lang.String timestampXpath)
Sets the timestamp XPath.- Parameters:
timestampXpath- the new timestamp XPath
-
getTimestampFormat
public java.lang.String getTimestampFormat()
Gets the timestamp format.- Returns:
- the timestamp format
-
setTimestampFormat
public void setTimestampFormat(java.lang.String timestampFormat)
Sets the timestamp format.- Parameters:
timestampFormat- the new timestamp format
-
getIfType
public java.lang.String getIfType()
Gets the if type.- Returns:
- the if type
-
getXmlResourceKey
public XmlResourceKey getXmlResourceKey()
Gets the XML resource key.- Returns:
- the XML resource key
-
setXmlResourceKey
public void setXmlResourceKey(XmlResourceKey xmlResourceKey)
Sets the XML resource key.- Parameters:
xmlResourceKey- the new XML resource key
-
hasMultipleResourceKey
public boolean hasMultipleResourceKey()
Checks for multiple resource key.- Returns:
- true, if successful
-
compareTo
public int compareTo(XmlGroup obj)
- Specified by:
compareToin interfacejava.lang.Comparable<XmlGroup>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
clone
public XmlGroup clone()
- Overrides:
clonein classjava.lang.Object
-
-