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 |
deleteReadOnly() |
Enumeration<Contact> |
enumerateContact()
Method enumerateContact.
|
Enumeration<String> |
enumerateDutySchedule()
Method enumerateDutySchedule.
|
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'.
|
boolean |
getReadOnly()
Returns the value of field 'readOnly'.
|
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 |
hasReadOnly()
Method hasReadOnly.
|
boolean |
isReadOnly()
Returns the value of field 'readOnly'.
|
boolean |
isValid()
Method isValid.
|
Iterator<Contact> |
iterateContact()
Method iterateContact.
|
Iterator<String> |
iterateDutySchedule()
Method iterateDutySchedule.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllContact() |
void |
removeAllDutySchedule() |
boolean |
removeContact(Contact vContact)
Method removeContact.
|
Contact |
removeContactAt(int index)
Method removeContactAt.
|
boolean |
removeDutySchedule(String vDutySchedule)
Method removeDutySchedule.
|
String |
removeDutyScheduleAt(int index)
Method removeDutyScheduleAt.
|
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 |
setReadOnly(boolean readOnly)
Sets the value of field 'readOnly'.
|
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 deleteReadOnly()
public Enumeration<Contact> enumerateContact()
public Enumeration<String> enumerateDutySchedule()
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 boolean getReadOnly()
public String getTuiPin()
public String getUserComments()
public String getUserId()
public boolean hasReadOnly()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isReadOnly()
public boolean isValid()
public Iterator<Contact> iterateContact()
public Iterator<String> iterateDutySchedule()
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 boolean removeContact(Contact vContact)
vContact
- public Contact removeContactAt(int index)
index
- public boolean removeDutySchedule(String vDutySchedule)
vDutySchedule
- public String removeDutyScheduleAt(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 setReadOnly(boolean readOnly)
readOnly
- the value of field 'readOnly'.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.