public class Groups extends Object implements Serializable
Constructor and Description |
---|
Groups() |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(Group group) |
void |
addGroup(int index,
Group group) |
Enumeration<Group> |
enumerateGroup()
Method enumerateGroup.
|
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.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Deprecated.
|
Iterator<Group> |
iterateGroup()
Method iterateGroup.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllGroup() |
boolean |
removeGroup(Group group)
Method removeGroup.
|
Group |
removeGroupAt(int index)
Method removeGroupAt.
|
void |
setGroup(Group[] groups) |
void |
setGroup(int index,
Group group) |
void |
setGroup(List<Group> groups)
Sets the value of '_groupList' by copying the given Vector.
|
void |
setGroupCollection(List<Group> groups)
Deprecated.
|
static Groups |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
public void addGroup(Group group) throws IndexOutOfBoundsException
group
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addGroup(int index, Group group) throws IndexOutOfBoundsException
index
- group
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Group> enumerateGroup()
public boolean equals(Object obj)
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 int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
@Deprecated public boolean isValid()
public Iterator<Group> iterateGroup()
@Deprecated 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllGroup()
public boolean removeGroup(Group group)
group
- public Group removeGroupAt(int index)
index
- public void setGroup(int index, Group group) throws IndexOutOfBoundsException
index
- group
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setGroup(Group[] groups)
groups
- public void setGroup(List<Group> groups)
groups
- the Vector to copy.public void setGroupCollection(List<Group> groups)
groups
- the Vector to set.@Deprecated 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.