public class Group extends Object implements Serializable
Constructor and Description |
---|
Group() |
Modifier and Type | Method and Description |
---|---|
void |
addDutySchedule(int index,
String vDutySchedule) |
void |
addDutySchedule(String vDutySchedule) |
void |
addUser(int index,
String vUser) |
void |
addUser(String vUser) |
Enumeration<String> |
enumerateDutySchedule()
Method enumerateDutySchedule.
|
Enumeration<String> |
enumerateUser()
Method enumerateUser.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getComments()
Returns the value of field 'comments'.
|
String |
getDefaultMap()
Returns the value of field 'defaultMap'.
|
String[] |
getDutySchedule()
Method getDutySchedule.Returns the contents of the
collection in an Array.
|
String |
getDutySchedule(int index)
Method getDutySchedule.
|
List<String> |
getDutyScheduleCollection()
Method getDutyScheduleCollection.Returns a reference to
'_dutyScheduleList'.
|
int |
getDutyScheduleCount()
Method getDutyScheduleCount.
|
String |
getName()
Returns the value of field 'name'.
|
String[] |
getUser()
Method getUser.Returns the contents of the collection in an
Array.
|
String |
getUser(int index)
Method getUser.
|
List<String> |
getUserCollection()
Method getUserCollection.Returns a reference to '_userList'.
|
int |
getUserCount()
Method getUserCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<String> |
iterateDutySchedule()
Method iterateDutySchedule.
|
Iterator<String> |
iterateUser()
Method iterateUser.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllDutySchedule() |
void |
removeAllUser() |
boolean |
removeDutySchedule(String vDutySchedule)
Method removeDutySchedule.
|
String |
removeDutyScheduleAt(int index)
Method removeDutyScheduleAt.
|
boolean |
removeUser(String vUser)
Method removeUser.
|
String |
removeUserAt(int index)
Method removeUserAt.
|
void |
setComments(String comments)
Sets the value of field 'comments'.
|
void |
setDefaultMap(String defaultMap)
Sets the value of field 'defaultMap'.
|
void |
setDutySchedule(int index,
String vDutySchedule) |
void |
setDutySchedule(List<String> vDutyScheduleList)
Sets the value of '_dutyScheduleList' by copying the given
Vector.
|
void |
setDutySchedule(String[] vDutyScheduleArray) |
void |
setDutyScheduleCollection(List<String> dutyScheduleList)
Deprecated.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setUser(int index,
String vUser) |
void |
setUser(List<String> vUserList)
Sets the value of '_userList' by copying the given Vector.
|
void |
setUser(String[] vUserArray) |
void |
setUserCollection(List<String> userList)
Deprecated.
|
static Group |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addDutySchedule(String vDutySchedule) throws IndexOutOfBoundsException
vDutySchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addDutySchedule(int index, String vDutySchedule) throws IndexOutOfBoundsException
index
- vDutySchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addUser(String vUser) throws IndexOutOfBoundsException
vUser
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addUser(int index, String vUser) throws IndexOutOfBoundsException
index
- vUser
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<String> enumerateDutySchedule()
public Enumeration<String> enumerateUser()
public boolean equals(Object obj)
public String getComments()
public String getDefaultMap()
public String getDutySchedule(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getDutySchedule()
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<String> getDutyScheduleCollection()
public int getDutyScheduleCount()
public String getName()
public String getUser(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getUser()
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<String> getUserCollection()
public int getUserCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<String> iterateDutySchedule()
public Iterator<String> iterateUser()
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 schemapublic 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 removeAllDutySchedule()
public void removeAllUser()
public boolean removeDutySchedule(String vDutySchedule)
vDutySchedule
- public String removeDutyScheduleAt(int index)
index
- public boolean removeUser(String vUser)
vUser
- public String removeUserAt(int index)
index
- public void setComments(String comments)
comments
- the value of field 'comments'.public void setDefaultMap(String defaultMap)
defaultMap
- the value of field 'defaultMap'.public void setDutySchedule(int index, String vDutySchedule) throws IndexOutOfBoundsException
index
- vDutySchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setDutySchedule(String[] vDutyScheduleArray)
vDutyScheduleArray
- public void setDutySchedule(List<String> vDutyScheduleList)
vDutyScheduleList
- the Vector to copy.public void setDutyScheduleCollection(List<String> dutyScheduleList)
dutyScheduleList
- the Vector to set.public void setName(String name)
name
- the value of field 'name'.public void setUser(int index, String vUser) throws IndexOutOfBoundsException
index
- vUser
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setUser(String[] vUserArray)
vUserArray
- public void setUser(List<String> vUserList)
vUserList
- the Vector to copy.public void setUserCollection(List<String> userList)
userList
- the Vector to set.public static Group 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 schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.