Package org.opennms.protocols.xml.config
Class XmlGroup
- java.lang.Object
-
- org.opennms.protocols.xml.config.XmlGroup
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<XmlGroup>
public class XmlGroup extends Object implements Serializable, Comparable<XmlGroup>, 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(Object obj)StringgetIfType()Gets the if type.StringgetKeyXpath()Gets the key XPath (for resource instance).StringgetName()Gets the name.StringgetResourceType()Gets the resource type.StringgetResourceXpath()Gets the resource XPath.StringgetTimestampFormat()Gets the timestamp format.StringgetTimestampXpath()Gets the timestamp XPath.List<XmlObject>getXmlObjects()Gets the XML objects.XmlResourceKeygetXmlResourceKey()Gets the XML resource key.booleanhasMultipleResourceKey()Checks for multiple resource key.voidremoveObjectByName(String name)Removes a XML object by name.voidremoveXmlObject(XmlObject xmlObject)Removes a XML object.voidsetKeyXpath(String keyXpath)Sets the key XPath.voidsetName(String name)Sets the name.voidsetResourceType(String resourceType)Sets the resource type.voidsetResourceXpath(String resourceXpath)Sets the resource XPath.voidsetTimestampFormat(String timestampFormat)Sets the timestamp format.voidsetTimestampXpath(String timestampXpath)Sets the timestamp XPath.voidsetXmlObjects(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 String getName()
Gets the name.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name.- Parameters:
name- the new name
-
setXmlObjects
public void setXmlObjects(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(String name)
Removes a XML object by name.- Parameters:
name- the XML object name
-
getResourceType
public String getResourceType()
Gets the resource type.- Returns:
- the resource type
-
setResourceType
public void setResourceType(String resourceType)
Sets the resource type.- Parameters:
resourceType- the new resource type
-
getResourceXpath
public String getResourceXpath()
Gets the resource XPath.- Returns:
- the resource XPath
-
setResourceXpath
public void setResourceXpath(String resourceXpath)
Sets the resource XPath.- Parameters:
resourceXpath- the new resource XPath
-
getKeyXpath
public String getKeyXpath()
Gets the key XPath (for resource instance).- Returns:
- the key XPath
-
setKeyXpath
public void setKeyXpath(String keyXpath)
Sets the key XPath.- Parameters:
keyXpath- the new key XPath
-
getTimestampXpath
public String getTimestampXpath()
Gets the timestamp XPath.- Returns:
- the timestamp XPath
-
setTimestampXpath
public void setTimestampXpath(String timestampXpath)
Sets the timestamp XPath.- Parameters:
timestampXpath- the new timestamp XPath
-
getTimestampFormat
public String getTimestampFormat()
Gets the timestamp format.- Returns:
- the timestamp format
-
setTimestampFormat
public void setTimestampFormat(String timestampFormat)
Sets the timestamp format.- Parameters:
timestampFormat- the new timestamp format
-
getIfType
public 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 interfaceComparable<XmlGroup>
-
-