public class User extends Object implements Serializable
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
void |
addContact(Contact vContact) |
void |
addContact(int index,
Contact vContact) |
void |
addDutySchedule(int index,
String vDutySchedule) |
void |
addDutySchedule(String vDutySchedule) |
void |
addRole(int index,
String vRole) |
void |
addRole(String vRole) |
Enumeration<Contact> |
enumerateContact()
Method enumerateContact.
|
Enumeration<String> |
enumerateDutySchedule()
Method enumerateDutySchedule.
|
Enumeration<String> |
enumerateRole()
Method enumerateRole.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Contact[] |
getContact()
Method getContact.Returns the contents of the collection in
an Array.
|
Contact |
getContact(int index)
Method getContact.
|
List<Contact> |
getContactCollection()
Method getContactCollection.Returns a reference to
'_contactList'.
|
int |
getContactCount()
Method getContactCount.
|
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 |
getFullName()
Returns the value of field 'fullName'.
|
Password |
getPassword()
Returns the value of field 'password'.
|
String[] |
getRole()
Method getRole.Returns the contents of the collection in an
Array.
|
String |
getRole(int index)
Method getRole.
|
List<String> |
getRoleCollection()
Method getRoleCollection.Returns a reference to '_roleList'.
|
int |
getRoleCount()
Method getRoleCount.
|
String |
getTuiPin()
Returns the value of field 'tuiPin'.
|
String |
getUserComments()
Returns the value of field 'userComments'.
|
String |
getUserId()
Returns the value of field 'userId'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Contact> |
iterateContact()
Method iterateContact.
|
Iterator<String> |
iterateDutySchedule()
Method iterateDutySchedule.
|
Iterator<String> |
iterateRole()
Method iterateRole.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllContact() |
void |
removeAllDutySchedule() |
void |
removeAllRole() |
boolean |
removeContact(Contact vContact)
Method removeContact.
|
Contact |
removeContactAt(int index)
Method removeContactAt.
|
boolean |
removeDutySchedule(String vDutySchedule)
Method removeDutySchedule.
|
String |
removeDutyScheduleAt(int index)
Method removeDutyScheduleAt.
|
boolean |
removeRole(String vRole)
Method removeRole.
|
String |
removeRoleAt(int index)
Method removeRoleAt.
|
void |
setContact(Contact[] vContactArray) |
void |
setContact(int index,
Contact vContact) |
void |
setContact(List<Contact> vContactList)
Sets the value of '_contactList' by copying the given
Vector.
|
void |
setContactCollection(List<Contact> contactList)
Deprecated.
|
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 |
setFullName(String fullName)
Sets the value of field 'fullName'.
|
void |
setPassword(Password password)
Sets the value of field 'password'.
|
void |
setRole(int index,
String vRole) |
void |
setRole(List<String> vRoleList)
Sets the value of '_roleList' by copying the given Vector.
|
void |
setRole(String[] vRoleArray) |
void |
setRoleCollection(List<String> roleList)
Deprecated.
|
void |
setTuiPin(String tuiPin)
Sets the value of field 'tuiPin'.
|
void |
setUserComments(String userComments)
Sets the value of field 'userComments'.
|
void |
setUserId(String userId)
Sets the value of field 'userId'.
|
static User |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addContact(Contact vContact) throws IndexOutOfBoundsException
vContact
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addContact(int index, Contact vContact) throws IndexOutOfBoundsException
index
- vContact
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic 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 addRole(String vRole) throws IndexOutOfBoundsException
vRole
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addRole(int index, String vRole) throws IndexOutOfBoundsException
index
- vRole
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Contact> enumerateContact()
public Enumeration<String> enumerateDutySchedule()
public Enumeration<String> enumerateRole()
public boolean equals(Object obj)
public Contact getContact(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Contact[] getContact()
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<Contact> getContactCollection()
public int getContactCount()
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 getFullName()
public Password getPassword()
public String getRole(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getRole()
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> getRoleCollection()
public int getRoleCount()
public String getTuiPin()
public String getUserComments()
public String getUserId()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Contact> iterateContact()
public Iterator<String> iterateDutySchedule()
public Iterator<String> iterateRole()
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 removeAllContact()
public void removeAllDutySchedule()
public void removeAllRole()
public boolean removeContact(Contact vContact)
vContact
- public Contact removeContactAt(int index)
index
- public boolean removeDutySchedule(String vDutySchedule)
vDutySchedule
- public String removeDutyScheduleAt(int index)
index
- public boolean removeRole(String vRole)
vRole
- public String removeRoleAt(int index)
index
- public void setContact(int index, Contact vContact) throws IndexOutOfBoundsException
index
- vContact
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setContact(Contact[] vContactArray)
vContactArray
- public void setContact(List<Contact> vContactList)
vContactList
- the Vector to copy.public void setContactCollection(List<Contact> contactList)
contactList
- the Vector to set.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 setFullName(String fullName)
fullName
- the value of field 'fullName'.public void setPassword(Password password)
password
- the value of field 'password'.public void setRole(int index, String vRole) throws IndexOutOfBoundsException
index
- vRole
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setRole(String[] vRoleArray)
vRoleArray
- public void setRole(List<String> vRoleList)
vRoleList
- the Vector to copy.public void setRoleCollection(List<String> roleList)
roleList
- the Vector to set.public void setTuiPin(String tuiPin)
tuiPin
- the value of field 'tuiPin'.public void setUserComments(String userComments)
userComments
- the value of field 'userComments'.public void setUserId(String userId)
userId
- the value of field 'userId'.public static User 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.