org.opennms.report.availability
Class Week
java.lang.Object
org.opennms.report.availability.Week
- All Implemented Interfaces:
- java.io.Serializable
- public class Week
- extends java.lang.Object
- implements java.io.Serializable
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
Constructor Summary |
Week()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_dayList
private java.util.ArrayList _dayList
propertyChangeListeners
private java.util.Vector propertyChangeListeners
Week
public Week()
addDay
public void addDay(Day vDay)
throws java.lang.IndexOutOfBoundsException
- Parameters:
vDay
-
- Throws:
java.lang.IndexOutOfBoundsException
addDay
public void addDay(int index,
Day vDay)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
- vDay
-
- Throws:
java.lang.IndexOutOfBoundsException
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
- Registers a PropertyChangeListener with this class.
- Parameters:
pcl
- The PropertyChangeListener to register.
clearDay
public void clearDay()
enumerateDay
public java.util.Enumeration enumerateDay()
equals
public boolean equals(java.lang.Object obj)
- Note: hashCode() has not been overriden
- Parameters:
obj
-
getDay
public Day getDay(int index)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-
- Throws:
java.lang.IndexOutOfBoundsException
getDay
public Day[] getDay()
getDayCollection
public java.util.Collection getDayCollection()
getDayCount
public int getDayCount()
isValid
public boolean isValid()
marshal
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
out
-
- Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
marshal
public void marshal(org.xml.sax.DocumentHandler handler)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
handler
-
- Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
notifyPropertyChangeListeners
protected void notifyPropertyChangeListeners(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
- Notifies all registered PropertyChangeListeners when a bound
property's value changes.
- Parameters:
fieldName
- the name of the property that has changed.newValue
- the new value of the property.oldValue
- the old value of the property.
removeDay
public boolean removeDay(Day vDay)
- Parameters:
vDay
-
removePropertyChangeListener
public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
- Removes the given PropertyChangeListener from this classes
list of ProperyChangeListeners.
- Parameters:
pcl
- The PropertyChangeListener to remove.
- Returns:
- true if the given PropertyChangeListener was removed.
setDay
public void setDay(int index,
Day vDay)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
- vDay
-
- Throws:
java.lang.IndexOutOfBoundsException
setDay
public void setDay(Day[] dayArray)
- Parameters:
dayArray
-
setDayCollection
public void setDayCollection(java.util.Collection vDay)
- Parameters:
vDay
-
unmarshal
public static Week unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
reader
-
- Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
validate
public void validate()
throws org.exolab.castor.xml.ValidationException
- Throws:
org.exolab.castor.xml.ValidationException
Generated by ranger on May 19 2007 2335.