org.opennms.netmgt.config.common
Class BasicSchedule

java.lang.Object
  extended by org.opennms.netmgt.config.common.BasicSchedule
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Outage, Schedule

public class BasicSchedule
extends java.lang.Object
implements java.io.Serializable

Class BasicSchedule.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
BasicSchedule()
           
 
Method Summary
 void addTime(int index, Time vTime)
          Method addTime
 void addTime(Time vTime)
          Method addTime
 void clearTime()
          Method clearTime
 java.util.Enumeration enumerateTime()
          Method enumerateTime
 java.lang.String getName()
          Returns the value of field 'name'.
 Time[] getTime()
          Method getTime
 Time getTime(int index)
          Method getTime
 java.util.ArrayList getTimeCollection()
          Method getTimeCollection Returns a reference to 'time'.
 int getTimeCount()
          Method getTimeCount
 java.lang.String getType()
          Returns the value of field 'type'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeTime(Time vTime)
          Method removeTime
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setTime(java.util.ArrayList timeCollection)
          Method setTime Sets the value of 'time' by copying the given ArrayList.
 void setTime(int index, Time vTime)
          Method setTime
 void setTime(Time[] timeArray)
          Method setTime
 void setTimeCollection(java.util.ArrayList timeCollection)
          Method setTimeCollection Sets the value of 'time' by setting it to the given ArrayList.
 void setType(java.lang.String type)
          Sets the value of field 'type'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSchedule

public BasicSchedule()
Method Detail

addTime

public void addTime(Time vTime)
             throws java.lang.IndexOutOfBoundsException
Method addTime

Parameters:
vTime -
Throws:
java.lang.IndexOutOfBoundsException

addTime

public void addTime(int index,
                    Time vTime)
             throws java.lang.IndexOutOfBoundsException
Method addTime

Parameters:
index -
vTime -
Throws:
java.lang.IndexOutOfBoundsException

clearTime

public void clearTime()
Method clearTime


enumerateTime

public java.util.Enumeration enumerateTime()
Method enumerateTime

Returns:
Enumeration

getName

public java.lang.String getName()
Returns the value of field 'name'. The field 'name' has the following description: outage name

Returns:
String

getTime

public Time getTime(int index)
             throws java.lang.IndexOutOfBoundsException
Method getTime

Parameters:
index -
Returns:
Time
Throws:
java.lang.IndexOutOfBoundsException

getTime

public Time[] getTime()
Method getTime

Returns:
Time

getTimeCollection

public java.util.ArrayList getTimeCollection()
Method getTimeCollection Returns a reference to 'time'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getTimeCount

public int getTimeCount()
Method getTimeCount

Returns:
int

getType

public java.lang.String getType()
Returns the value of field 'type'. The field 'type' has the following description: outage type

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeTime

public boolean removeTime(Time vTime)
Method removeTime

Parameters:
vTime -
Returns:
boolean

setName

public void setName(java.lang.String name)
Sets the value of field 'name'. The field 'name' has the following description: outage name

Parameters:
name - the value of field 'name'.

setTime

public void setTime(int index,
                    Time vTime)
             throws java.lang.IndexOutOfBoundsException
Method setTime

Parameters:
index -
vTime -
Throws:
java.lang.IndexOutOfBoundsException

setTime

public void setTime(Time[] timeArray)
Method setTime

Parameters:
timeArray -

setTime

public void setTime(java.util.ArrayList timeCollection)
Method setTime Sets the value of 'time' by copying the given ArrayList.

Parameters:
timeCollection - the Vector to copy.

setTimeCollection

public void setTimeCollection(java.util.ArrayList timeCollection)
Method setTimeCollection Sets the value of 'time' by setting it to the given ArrayList. No type checking is performed.

Parameters:
timeCollection - the ArrayList to copy.

setType

public void setType(java.lang.String type)
Sets the value of field 'type'. The field 'type' has the following description: outage type

Parameters:
type - the value of field 'type'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.