OpenNMS API 1.2.3

org.opennms.netmgt.config.poller
Class Downtime

java.lang.Object
  extended byorg.opennms.netmgt.config.poller.Downtime
All Implemented Interfaces:
java.io.Serializable

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

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

Field Summary
private  long _begin
           
private  java.lang.String _delete
           
private  long _end
           
private  boolean _has_begin
          keeps track of state for field: _begin
private  boolean _has_end
          keeps track of state for field: _end
private  boolean _has_interval
          keeps track of state for field: _interval
private  long _interval
           
private  java.util.Vector propertyChangeListeners
           
 
Constructor Summary
Downtime()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Registers a PropertyChangeListener with this class.
 void deleteEnd()
           
 void deleteInterval()
           
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 long getBegin()
          Returns the value of field 'begin'.
 java.lang.String getDelete()
          Returns the value of field 'delete'.
 long getEnd()
          Returns the value of field 'end'.
 long getInterval()
          Returns the value of field 'interval'.
 boolean hasBegin()
           
 boolean hasEnd()
           
 boolean hasInterval()
           
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(java.io.Writer out)
           
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.
 boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners.
 void setBegin(long begin)
          Sets the value of field 'begin'.
 void setDelete(java.lang.String delete)
          Sets the value of field 'delete'.
 void setEnd(long end)
          Sets the value of field 'end'.
 void setInterval(long interval)
          Sets the value of field 'interval'.
static Downtime unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_begin

private long _begin

_has_begin

private boolean _has_begin
keeps track of state for field: _begin


_end

private long _end

_has_end

private boolean _has_end
keeps track of state for field: _end


_delete

private java.lang.String _delete

_interval

private long _interval

_has_interval

private boolean _has_interval
keeps track of state for field: _interval


propertyChangeListeners

private java.util.Vector propertyChangeListeners
Constructor Detail

Downtime

public Downtime()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class.

Parameters:
pcl - The PropertyChangeListener to register.

deleteEnd

public void deleteEnd()

deleteInterval

public void deleteInterval()

equals

public boolean equals(java.lang.Object obj)
Note: hashCode() has not been overriden

Parameters:
obj -

getBegin

public long getBegin()
Returns the value of field 'begin'.

Returns:
the value of field 'begin'.

getDelete

public java.lang.String getDelete()
Returns the value of field 'delete'.

Returns:
the value of field 'delete'.

getEnd

public long getEnd()
Returns the value of field 'end'.

Returns:
the value of field 'end'.

getInterval

public long getInterval()
Returns the value of field 'interval'.

Returns:
the value of field 'interval'.

hasBegin

public boolean hasBegin()

hasEnd

public boolean hasEnd()

hasInterval

public boolean hasInterval()

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.

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.

setBegin

public void setBegin(long begin)
Sets the value of field 'begin'.

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

setDelete

public void setDelete(java.lang.String delete)
Sets the value of field 'delete'.

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

setEnd

public void setEnd(long end)
Sets the value of field 'end'.

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

setInterval

public void setInterval(long interval)
Sets the value of field 'interval'.

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

unmarshal

public static Downtime 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

OpenNMS API 1.2.3

Generated by eevans on May 29 2005 2015.