public class BasicSchedule extends Object implements Serializable
Constructor and Description |
---|
BasicSchedule() |
Modifier and Type | Method and Description |
---|---|
void |
addTime(int index,
Time vTime) |
void |
addTime(Time vTime) |
Enumeration<Time> |
enumerateTime()
Method enumerateTime.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getName()
Returns the value of field 'name'.
|
Time[] |
getTime()
Method getTime.Returns the contents of the collection in an
Array.
|
Time |
getTime(int index)
Method getTime.
|
List<Time> |
getTimeCollection()
Method getTimeCollection.Returns a reference to '_timeList'.
|
int |
getTimeCount()
Method getTimeCount.
|
String |
getType()
Returns the value of field 'type'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Time> |
iterateTime()
Method iterateTime.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllTime() |
boolean |
removeTime(Time vTime)
Method removeTime.
|
Time |
removeTimeAt(int index)
Method removeTimeAt.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setTime(int index,
Time vTime) |
void |
setTime(List<Time> vTimeList)
Sets the value of '_timeList' by copying the given Vector.
|
void |
setTime(Time[] vTimeArray) |
void |
setTimeCollection(List<Time> timeList)
Deprecated.
|
void |
setType(String type)
Sets the value of field 'type'.
|
static BasicSchedule |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addTime(Time vTime) throws IndexOutOfBoundsException
vTime
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addTime(int index, Time vTime) throws IndexOutOfBoundsException
index
- vTime
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Time> enumerateTime()
public boolean equals(Object obj)
public String getName()
public Time getTime(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Time[] getTime()
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<Time> getTimeCollection()
public int getTimeCount()
public String getType()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Time> iterateTime()
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 removeAllTime()
public boolean removeTime(Time vTime)
vTime
- public Time removeTimeAt(int index)
index
- public void setName(String name)
name
- the value of field 'name'.public void setTime(int index, Time vTime) throws IndexOutOfBoundsException
index
- vTime
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setTime(Time[] vTimeArray)
vTimeArray
- public void setTime(List<Time> vTimeList)
vTimeList
- the Vector to copy.public void setTimeCollection(List<Time> timeList)
timeList
- the Vector to set.public void setType(String type)
type
- the value of field 'type'.public static BasicSchedule 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.