|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.datacollection.DatacollectionGroup
public class DatacollectionGroup
Top-level element for the datacollection group configuration file.
| Constructor Summary | |
|---|---|
DatacollectionGroup()
|
|
| Method Summary | |
|---|---|
void |
addGroup(Group vGroup)
|
void |
addGroup(int index,
Group vGroup)
|
void |
addResourceType(int index,
ResourceType vResourceType)
|
void |
addResourceType(ResourceType vResourceType)
|
void |
addSystemDef(int index,
SystemDef vSystemDef)
|
void |
addSystemDef(SystemDef vSystemDef)
|
Enumeration<Group> |
enumerateGroup()
Method enumerateGroup. |
Enumeration<ResourceType> |
enumerateResourceType()
Method enumerateResourceType. |
Enumeration<SystemDef> |
enumerateSystemDef()
Method enumerateSystemDef. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
Group[] |
getGroup()
Method getGroup.Returns the contents of the collection in an Array. |
Group |
getGroup(int index)
Method getGroup. |
List<Group> |
getGroupCollection()
Method getGroupCollection.Returns a reference to '_groupList'. |
int |
getGroupCount()
Method getGroupCount. |
String |
getName()
Returns the value of field 'name'. |
ResourceType[] |
getResourceType()
Method getResourceType.Returns the contents of the collection in an Array. |
ResourceType |
getResourceType(int index)
Method getResourceType. |
List<ResourceType> |
getResourceTypeCollection()
Method getResourceTypeCollection.Returns a reference to '_resourceTypeList'. |
int |
getResourceTypeCount()
Method getResourceTypeCount. |
SystemDef[] |
getSystemDef()
Method getSystemDef.Returns the contents of the collection in an Array. |
SystemDef |
getSystemDef(int index)
Method getSystemDef. |
List<SystemDef> |
getSystemDefCollection()
Method getSystemDefCollection.Returns a reference to '_systemDefList'. |
int |
getSystemDefCount()
Method getSystemDefCount. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
Iterator<Group> |
iterateGroup()
Method iterateGroup. |
Iterator<ResourceType> |
iterateResourceType()
Method iterateResourceType. |
Iterator<SystemDef> |
iterateSystemDef()
Method iterateSystemDef. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllGroup()
|
void |
removeAllResourceType()
|
void |
removeAllSystemDef()
|
boolean |
removeGroup(Group vGroup)
Method removeGroup. |
Group |
removeGroupAt(int index)
Method removeGroupAt. |
boolean |
removeResourceType(ResourceType vResourceType)
Method removeResourceType. |
ResourceType |
removeResourceTypeAt(int index)
Method removeResourceTypeAt. |
boolean |
removeSystemDef(SystemDef vSystemDef)
Method removeSystemDef. |
SystemDef |
removeSystemDefAt(int index)
Method removeSystemDefAt. |
void |
setGroup(Group[] vGroupArray)
|
void |
setGroup(int index,
Group vGroup)
|
void |
setGroup(List<Group> vGroupList)
Sets the value of '_groupList' by copying the given Vector. |
void |
setGroupCollection(List<Group> groupList)
Deprecated. |
void |
setName(String name)
Sets the value of field 'name'. |
void |
setResourceType(int index,
ResourceType vResourceType)
|
void |
setResourceType(List<ResourceType> vResourceTypeList)
Sets the value of '_resourceTypeList' by copying the given Vector. |
void |
setResourceType(ResourceType[] vResourceTypeArray)
|
void |
setResourceTypeCollection(List<ResourceType> resourceTypeList)
Deprecated. |
void |
setSystemDef(int index,
SystemDef vSystemDef)
|
void |
setSystemDef(List<SystemDef> vSystemDefList)
Sets the value of '_systemDefList' by copying the given Vector. |
void |
setSystemDef(SystemDef[] vSystemDefArray)
|
void |
setSystemDefCollection(List<SystemDef> systemDefList)
Deprecated. |
static DatacollectionGroup |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatacollectionGroup()
| Method Detail |
|---|
public void addGroup(Group vGroup)
throws IndexOutOfBoundsException
vGroup -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addGroup(int index,
Group vGroup)
throws IndexOutOfBoundsException
index - vGroup -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addResourceType(ResourceType vResourceType)
throws IndexOutOfBoundsException
vResourceType -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addResourceType(int index,
ResourceType vResourceType)
throws IndexOutOfBoundsException
index - vResourceType -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addSystemDef(SystemDef vSystemDef)
throws IndexOutOfBoundsException
vSystemDef -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addSystemDef(int index,
SystemDef vSystemDef)
throws IndexOutOfBoundsException
index - vSystemDef -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Group> enumerateGroup()
public Enumeration<ResourceType> enumerateResourceType()
public Enumeration<SystemDef> enumerateSystemDef()
public boolean equals(Object obj)
equals in class Objectobj -
public Group getGroup(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Group[] getGroup()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Group> getGroupCollection()
public int getGroupCount()
public String getName()
public ResourceType getResourceType(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic ResourceType[] getResourceType()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<ResourceType> getResourceTypeCollection()
public int getResourceTypeCount()
public SystemDef getSystemDef(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic SystemDef[] getSystemDef()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<SystemDef> getSystemDefCollection()
public int getSystemDefCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode in class Objectpublic boolean isValid()
public Iterator<Group> iterateGroup()
public Iterator<ResourceType> iterateResourceType()
public Iterator<SystemDef> iterateSystemDef()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllGroup()
public void removeAllResourceType()
public void removeAllSystemDef()
public boolean removeGroup(Group vGroup)
vGroup -
public Group removeGroupAt(int index)
index -
public boolean removeResourceType(ResourceType vResourceType)
vResourceType -
public ResourceType removeResourceTypeAt(int index)
index -
public boolean removeSystemDef(SystemDef vSystemDef)
vSystemDef -
public SystemDef removeSystemDefAt(int index)
index -
public void setGroup(int index,
Group vGroup)
throws IndexOutOfBoundsException
index - vGroup -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setGroup(Group[] vGroupArray)
vGroupArray - public void setGroup(List<Group> vGroupList)
vGroupList - the Vector to copy.public void setGroupCollection(List<Group> groupList)
groupList - the Vector to set.public void setName(String name)
name - the value of field 'name'.
public void setResourceType(int index,
ResourceType vResourceType)
throws IndexOutOfBoundsException
index - vResourceType -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setResourceType(ResourceType[] vResourceTypeArray)
vResourceTypeArray - public void setResourceType(List<ResourceType> vResourceTypeList)
vResourceTypeList - the Vector to copy.public void setResourceTypeCollection(List<ResourceType> resourceTypeList)
resourceTypeList - the Vector to set.
public void setSystemDef(int index,
SystemDef vSystemDef)
throws IndexOutOfBoundsException
index - vSystemDef -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setSystemDef(SystemDef[] vSystemDefArray)
vSystemDefArray - public void setSystemDef(List<SystemDef> vSystemDefList)
vSystemDefList - the Vector to copy.public void setSystemDefCollection(List<SystemDef> systemDefList)
systemDefList - the Vector to set.
public static DatacollectionGroup unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||