org.opennms.report.availability
Class Week

java.lang.Object
  extended by org.opennms.report.availability.Week
All Implemented Interfaces:
java.io.Serializable

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

Class Week.

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

Constructor Summary
Week()
           
 
Method Summary
 void addDay(Day vDay)
          Method addDay
 void addDay(int index, Day vDay)
          Method addDay
 void clearDay()
          Method clearDay
 java.util.Enumeration enumerateDay()
          Method enumerateDay
 Day[] getDay()
          Method getDay
 Day getDay(int index)
          Method getDay
 java.util.ArrayList getDayCollection()
          Method getDayCollection Returns a reference to 'day'.
 int getDayCount()
          Method getDayCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeDay(Day vDay)
          Method removeDay
 void setDay(java.util.ArrayList dayCollection)
          Method setDay Sets the value of 'day' by copying the given ArrayList.
 void setDay(Day[] dayArray)
          Method setDay
 void setDay(int index, Day vDay)
          Method setDay
 void setDayCollection(java.util.ArrayList dayCollection)
          Method setDayCollection Sets the value of 'day' by setting it to the given ArrayList.
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

Week

public Week()
Method Detail

addDay

public void addDay(Day vDay)
            throws java.lang.IndexOutOfBoundsException
Method addDay

Parameters:
vDay -
Throws:
java.lang.IndexOutOfBoundsException

addDay

public void addDay(int index,
                   Day vDay)
            throws java.lang.IndexOutOfBoundsException
Method addDay

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

clearDay

public void clearDay()
Method clearDay


enumerateDay

public java.util.Enumeration enumerateDay()
Method enumerateDay

Returns:
Enumeration

getDay

public Day getDay(int index)
           throws java.lang.IndexOutOfBoundsException
Method getDay

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

getDay

public Day[] getDay()
Method getDay

Returns:
Day

getDayCollection

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

Returns:
ArrayList

getDayCount

public int getDayCount()
Method getDayCount

Returns:
int

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

removeDay

public boolean removeDay(Day vDay)
Method removeDay

Parameters:
vDay -
Returns:
boolean

setDay

public void setDay(int index,
                   Day vDay)
            throws java.lang.IndexOutOfBoundsException
Method setDay

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

setDay

public void setDay(Day[] dayArray)
Method setDay

Parameters:
dayArray -

setDay

public void setDay(java.util.ArrayList dayCollection)
Method setDay Sets the value of 'day' by copying the given ArrayList.

Parameters:
dayCollection - the Vector to copy.

setDayCollection

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

Parameters:
dayCollection - the ArrayList to copy.

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.