public class Role extends Object implements Serializable
Constructor and Description |
---|
Role() |
Modifier and Type | Method and Description |
---|---|
void |
addSchedule(int index,
Schedule vSchedule) |
void |
addSchedule(Schedule vSchedule) |
Enumeration<Schedule> |
enumerateSchedule()
Method enumerateSchedule.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getDescription()
Returns the value of field 'description'.
|
String |
getMembershipGroup()
Returns the value of field 'membershipGroup'.
|
String |
getName()
Returns the value of field 'name'.
|
Schedule[] |
getSchedule()
Method getSchedule.Returns the contents of the collection in
an Array.
|
Schedule |
getSchedule(int index)
Method getSchedule.
|
List<Schedule> |
getScheduleCollection()
Method getScheduleCollection.Returns a reference to
'_scheduleList'.
|
int |
getScheduleCount()
Method getScheduleCount.
|
String |
getSupervisor()
Returns the value of field 'supervisor'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Schedule> |
iterateSchedule()
Method iterateSchedule.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllSchedule() |
boolean |
removeSchedule(Schedule vSchedule)
Method removeSchedule.
|
Schedule |
removeScheduleAt(int index)
Method removeScheduleAt.
|
void |
setDescription(String description)
Sets the value of field 'description'.
|
void |
setMembershipGroup(String membershipGroup)
Sets the value of field 'membershipGroup'.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setSchedule(int index,
Schedule vSchedule) |
void |
setSchedule(List<Schedule> vScheduleList)
Sets the value of '_scheduleList' by copying the given
Vector.
|
void |
setSchedule(Schedule[] vScheduleArray) |
void |
setScheduleCollection(List<Schedule> scheduleList)
Deprecated.
|
void |
setSupervisor(String supervisor)
Sets the value of field 'supervisor'.
|
static Role |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addSchedule(Schedule vSchedule) throws IndexOutOfBoundsException
vSchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSchedule(int index, Schedule vSchedule) throws IndexOutOfBoundsException
index
- vSchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Schedule> enumerateSchedule()
public boolean equals(Object obj)
public String getDescription()
public String getMembershipGroup()
public String getName()
public Schedule getSchedule(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Schedule[] getSchedule()
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<Schedule> getScheduleCollection()
public int getScheduleCount()
public String getSupervisor()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Schedule> iterateSchedule()
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 removeAllSchedule()
public boolean removeSchedule(Schedule vSchedule)
vSchedule
- public Schedule removeScheduleAt(int index)
index
- public void setDescription(String description)
description
- the value of field 'description'.public void setMembershipGroup(String membershipGroup)
membershipGroup
- the value of field 'membershipGroup'.public void setName(String name)
name
- the value of field 'name'.public void setSchedule(int index, Schedule vSchedule) throws IndexOutOfBoundsException
index
- vSchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSchedule(Schedule[] vScheduleArray)
vScheduleArray
- public void setSchedule(List<Schedule> vScheduleList)
vScheduleList
- the Vector to copy.public void setScheduleCollection(List<Schedule> scheduleList)
scheduleList
- the Vector to set.public void setSupervisor(String supervisor)
supervisor
- the value of field 'supervisor'.public static Role 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.