org.opennms.report.availability
Class CalendarTable

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

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

Class CalendarTable.

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

Constructor Summary
CalendarTable()
           
 
Method Summary
 void addWeek(int index, Week vWeek)
          Method addWeek
 void addWeek(Week vWeek)
          Method addWeek
 void clearWeek()
          Method clearWeek
 java.util.Enumeration enumerateWeek()
          Method enumerateWeek
 DaysOfWeek getDaysOfWeek()
          Returns the value of field 'daysOfWeek'.
 java.lang.String getMonth()
          Returns the value of field 'month'.
 Week[] getWeek()
          Method getWeek
 Week getWeek(int index)
          Method getWeek
 java.util.ArrayList getWeekCollection()
          Method getWeekCollection Returns a reference to 'week'.
 int getWeekCount()
          Method getWeekCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeWeek(Week vWeek)
          Method removeWeek
 void setDaysOfWeek(DaysOfWeek daysOfWeek)
          Sets the value of field 'daysOfWeek'.
 void setMonth(java.lang.String month)
          Sets the value of field 'month'.
 void setWeek(java.util.ArrayList weekCollection)
          Method setWeek Sets the value of 'week' by copying the given ArrayList.
 void setWeek(int index, Week vWeek)
          Method setWeek
 void setWeek(Week[] weekArray)
          Method setWeek
 void setWeekCollection(java.util.ArrayList weekCollection)
          Method setWeekCollection Sets the value of 'week' 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

CalendarTable

public CalendarTable()
Method Detail

addWeek

public void addWeek(Week vWeek)
             throws java.lang.IndexOutOfBoundsException
Method addWeek

Parameters:
vWeek -
Throws:
java.lang.IndexOutOfBoundsException

addWeek

public void addWeek(int index,
                    Week vWeek)
             throws java.lang.IndexOutOfBoundsException
Method addWeek

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

clearWeek

public void clearWeek()
Method clearWeek


enumerateWeek

public java.util.Enumeration enumerateWeek()
Method enumerateWeek

Returns:
Enumeration

getDaysOfWeek

public DaysOfWeek getDaysOfWeek()
Returns the value of field 'daysOfWeek'.

Returns:
DaysOfWeek

getMonth

public java.lang.String getMonth()
Returns the value of field 'month'.

Returns:
String

getWeek

public Week getWeek(int index)
             throws java.lang.IndexOutOfBoundsException
Method getWeek

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

getWeek

public Week[] getWeek()
Method getWeek

Returns:
Week

getWeekCollection

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

Returns:
ArrayList

getWeekCount

public int getWeekCount()
Method getWeekCount

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

removeWeek

public boolean removeWeek(Week vWeek)
Method removeWeek

Parameters:
vWeek -
Returns:
boolean

setDaysOfWeek

public void setDaysOfWeek(DaysOfWeek daysOfWeek)
Sets the value of field 'daysOfWeek'.

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

setMonth

public void setMonth(java.lang.String month)
Sets the value of field 'month'.

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

setWeek

public void setWeek(int index,
                    Week vWeek)
             throws java.lang.IndexOutOfBoundsException
Method setWeek

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

setWeek

public void setWeek(Week[] weekArray)
Method setWeek

Parameters:
weekArray -

setWeek

public void setWeek(java.util.ArrayList weekCollection)
Method setWeek Sets the value of 'week' by copying the given ArrayList.

Parameters:
weekCollection - the Vector to copy.

setWeekCollection

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

Parameters:
weekCollection - 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.