public class CalendarTable extends Object implements Serializable
Constructor and Description |
---|
CalendarTable() |
Modifier and Type | Method and Description |
---|---|
void |
addWeek(int index,
Week vWeek) |
void |
addWeek(Week vWeek) |
Enumeration<Week> |
enumerateWeek()
Method enumerateWeek.
|
DaysOfWeek |
getDaysOfWeek()
Returns the value of field 'daysOfWeek'.
|
String |
getMonth()
Returns the value of field 'month'.
|
Week[] |
getWeek()
Method getWeek.Returns the contents of the collection in an
Array.
|
Week |
getWeek(int index)
Method getWeek.
|
List<Week> |
getWeekCollection()
Method getWeekCollection.Returns a reference to '_weekList'.
|
int |
getWeekCount()
Method getWeekCount.
|
boolean |
isValid()
Method isValid.
|
Iterator<Week> |
iterateWeek()
Method iterateWeek.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllWeek() |
boolean |
removeWeek(Week vWeek)
Method removeWeek.
|
Week |
removeWeekAt(int index)
Method removeWeekAt.
|
void |
setDaysOfWeek(DaysOfWeek daysOfWeek)
Sets the value of field 'daysOfWeek'.
|
void |
setMonth(String month)
Sets the value of field 'month'.
|
void |
setWeek(int index,
Week vWeek) |
void |
setWeek(List<Week> vWeekList)
Sets the value of '_weekList' by copying the given Vector.
|
void |
setWeek(Week[] vWeekArray) |
void |
setWeekCollection(List<Week> weekList)
Deprecated.
|
static CalendarTable |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addWeek(Week vWeek) throws IndexOutOfBoundsException
vWeek
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addWeek(int index, Week vWeek) throws IndexOutOfBoundsException
index
- vWeek
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Week> enumerateWeek()
public DaysOfWeek getDaysOfWeek()
public String getMonth()
public Week getWeek(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Week[] getWeek()
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<Week> getWeekCollection()
public int getWeekCount()
public boolean isValid()
public Iterator<Week> iterateWeek()
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 removeAllWeek()
public boolean removeWeek(Week vWeek)
vWeek
- public Week removeWeekAt(int index)
index
- public void setDaysOfWeek(DaysOfWeek daysOfWeek)
daysOfWeek
- the value of field 'daysOfWeek'.public void setMonth(String month)
month
- the value of field 'month'.public void setWeek(int index, Week vWeek) throws IndexOutOfBoundsException
index
- vWeek
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setWeek(Week[] vWeekArray)
vWeekArray
- public void setWeek(List<Week> vWeekList)
vWeekList
- the Vector to copy.public void setWeekCollection(List<Week> weekList)
weekList
- the Vector to set.public static CalendarTable 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.