public class DaysOfWeek extends Object implements Serializable
Constructor and Description |
---|
DaysOfWeek() |
Modifier and Type | Method and Description |
---|---|
void |
addDayName(int index,
String vDayName) |
void |
addDayName(String vDayName) |
Enumeration<String> |
enumerateDayName()
Method enumerateDayName.
|
String[] |
getDayName()
Method getDayName.Returns the contents of the collection in
an Array.
|
String |
getDayName(int index)
Method getDayName.
|
List<String> |
getDayNameCollection()
Method getDayNameCollection.Returns a reference to
'_dayNameList'.
|
int |
getDayNameCount()
Method getDayNameCount.
|
boolean |
isValid()
Method isValid.
|
Iterator<String> |
iterateDayName()
Method iterateDayName.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllDayName() |
boolean |
removeDayName(String vDayName)
Method removeDayName.
|
String |
removeDayNameAt(int index)
Method removeDayNameAt.
|
void |
setDayName(int index,
String vDayName) |
void |
setDayName(List<String> vDayNameList)
Sets the value of '_dayNameList' by copying the given
Vector.
|
void |
setDayName(String[] vDayNameArray) |
void |
setDayNameCollection(List<String> dayNameList)
Deprecated.
|
static DaysOfWeek |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addDayName(String vDayName) throws IndexOutOfBoundsException
vDayName
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addDayName(int index, String vDayName) throws IndexOutOfBoundsException
index
- vDayName
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<String> enumerateDayName()
public String getDayName(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getDayName()
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> getDayNameCollection()
public int getDayNameCount()
public boolean isValid()
public Iterator<String> iterateDayName()
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 removeAllDayName()
public boolean removeDayName(String vDayName)
vDayName
- public String removeDayNameAt(int index)
index
- public void setDayName(int index, String vDayName) throws IndexOutOfBoundsException
index
- vDayName
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setDayName(String[] vDayNameArray)
vDayNameArray
- public void setDayName(List<String> vDayNameList)
vDayNameList
- the Vector to copy.public void setDayNameCollection(List<String> dayNameList)
dayNameList
- the Vector to set.public static DaysOfWeek 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.