|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.common.BasicSchedule
public class BasicSchedule
Class BasicSchedule.
| Constructor Summary | |
|---|---|
BasicSchedule()
|
|
| Method Summary | |
|---|---|
void |
addTime(int index,
Time vTime)
|
void |
addTime(Time vTime)
|
Enumeration<Time> |
enumerateTime()
Method enumerateTime. |
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'. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSchedule()
| Method Detail |
|---|
public void addTime(Time vTime)
throws IndexOutOfBoundsException
vTime -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public 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 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 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||