|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.groups.Groups
public class Groups
Class Groups.
| Constructor Summary | |
|---|---|
Groups()
|
|
| Method Summary | |
|---|---|
void |
addGroup(Group vGroup)
|
void |
addGroup(int index,
Group vGroup)
|
Enumeration<Group> |
enumerateGroup()
Method enumerateGroup. |
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. |
boolean |
isValid()
Method isValid. |
Iterator<Group> |
iterateGroup()
Method iterateGroup. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllGroup()
|
boolean |
removeGroup(Group vGroup)
Method removeGroup. |
Group |
removeGroupAt(int index)
Method removeGroupAt. |
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. |
static Groups |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Groups()
| 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 collectionpublic Enumeration<Group> enumerateGroup()
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 boolean isValid()
public Iterator<Group> iterateGroup()
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 boolean removeGroup(Group vGroup)
vGroup -
public Group removeGroupAt(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 static Groups 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 | ||||||||