public class BasicSchedule extends Object implements Serializable
Constructor and Description |
---|
BasicSchedule() |
Modifier and Type | Method and Description |
---|---|
void |
addTime(int index,
Time time) |
void |
addTime(Time time) |
Enumeration<Time> |
enumerateTime()
Method enumerateTime.
|
boolean |
equals(Object obj) |
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 'm_times'.
|
int |
getTimeCount()
Method getTimeCount.
|
String |
getType()
Returns the value of field 'type'.
|
int |
hashCode() |
boolean |
isValid()
Deprecated.
|
Iterator<Time> |
iterateTime()
Method iterateTime.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllTime() |
boolean |
removeTime(Time time)
Method removeTime.
|
Time |
removeTimeAt(int index)
Method removeTimeAt.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setTime(int index,
Time time) |
void |
setTime(List<Time> times)
Sets the value of 'm_times' by copying the given Vector.
|
void |
setTime(Time[] times) |
void |
setTimeCollection(List<Time> times)
Deprecated.
|
void |
setType(String type)
Sets the value of field 'type'.
|
static BasicSchedule |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
public void addTime(Time time) throws IndexOutOfBoundsException
time
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addTime(int index, Time time) throws IndexOutOfBoundsException
index
- time
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Time> enumerateTime()
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()
@Deprecated public boolean isValid()
public Iterator<Time> iterateTime()
@Deprecated 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 schema@Deprecated public 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 time)
time
- public Time removeTimeAt(int index)
index
- public void setName(String name)
name
- the value of field 'name'.public void setTime(int index, Time time) throws IndexOutOfBoundsException
index
- time
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setTime(Time[] times)
times
- public void setTime(List<Time> times)
times
- the Vector to copy.public void setTimeCollection(List<Time> times)
times
- the Vector to set.public void setType(String type)
type
- the value of field 'type'.@Deprecated 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 schema@Deprecated public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2016. All rights reserved.