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 void
addXmlObject(XmlObject xmlObject)
Adds a new XML object.XmlGroup
clone()
int
compareTo(XmlGroup obj)
boolean
equals(Object obj)
String
getIfType()
Gets the if type.String
getKeyXpath()
Gets the key XPath (for resource instance).String
getName()
Gets the name.String
getResourceType()
Gets the resource type.String
getResourceXpath()
Gets the resource XPath.String
getTimestampFormat()
Gets the timestamp format.String
getTimestampXpath()
Gets the timestamp XPath.List<XmlObject>
getXmlObjects()
Gets the XML objects.XmlResourceKey
getXmlResourceKey()
Gets the XML resource key.boolean
hasMultipleResourceKey()
Checks for multiple resource key.void
removeObjectByName(String name)
Removes a XML object by name.void
removeXmlObject(XmlObject xmlObject)
Removes a XML object.void
setKeyXpath(String keyXpath)
Sets the key XPath.void
setName(String name)
Sets the name.void
setResourceType(String resourceType)
Sets the resource type.void
setResourceXpath(String resourceXpath)
Sets the resource XPath.void
setTimestampFormat(String timestampFormat)
Sets the timestamp format.void
setTimestampXpath(String timestampXpath)
Sets the timestamp XPath.void
setXmlObjects(List<XmlObject> xmlObjects)
Sets the XML objects.void
setXmlResourceKey(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:
compareTo
in interfaceComparable<XmlGroup>
-
-