OpenNMS API 1.2.3

org.opennms.netmgt.config.threshd
Class Thresholder

java.lang.Object
  extended byorg.opennms.netmgt.config.threshd.Thresholder
All Implemented Interfaces:
java.io.Serializable

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

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

Field Summary
private  java.lang.String _className
           
private  java.util.ArrayList _parameterList
           
private  java.lang.String _service
           
private  java.util.Vector propertyChangeListeners
           
 
Constructor Summary
Thresholder()
           
 
Method Summary
 void addParameter(int index, Parameter vParameter)
           
 void addParameter(Parameter vParameter)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Registers a PropertyChangeListener with this class.
 void clearParameter()
           
 java.util.Enumeration enumerateParameter()
           
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 java.lang.String getClassName()
          Returns the value of field 'className'.
 Parameter[] getParameter()
           
 Parameter getParameter(int index)
           
 java.util.Collection getParameterCollection()
           
 int getParameterCount()
           
 java.lang.String getService()
          Returns the value of field 'service'.
 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 removeParameter(Parameter vParameter)
           
 boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners.
 void setClassName(java.lang.String className)
          Sets the value of field 'className'.
 void setParameter(int index, Parameter vParameter)
           
 void setParameter(Parameter[] parameterArray)
           
 void setParameterCollection(java.util.Collection vParameter)
           
 void setService(java.lang.String service)
          Sets the value of field 'service'.
static Thresholder 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

_service

private java.lang.String _service

_className

private java.lang.String _className

_parameterList

private java.util.ArrayList _parameterList

propertyChangeListeners

private java.util.Vector propertyChangeListeners
Constructor Detail

Thresholder

public Thresholder()
Method Detail

addParameter

public void addParameter(Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Parameters:
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

addParameter

public void addParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

addPropertyChangeListener

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

Parameters:
pcl - The PropertyChangeListener to register.

clearParameter

public void clearParameter()

enumerateParameter

public java.util.Enumeration enumerateParameter()

equals

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

Parameters:
obj -

getClassName

public java.lang.String getClassName()
Returns the value of field 'className'.

Returns:
the value of field 'className'.

getParameter

public Parameter getParameter(int index)
                       throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getParameter

public Parameter[] getParameter()

getParameterCollection

public java.util.Collection getParameterCollection()

getParameterCount

public int getParameterCount()

getService

public java.lang.String getService()
Returns the value of field 'service'.

Returns:
the value of field 'service'.

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.

removeParameter

public boolean removeParameter(Parameter vParameter)
Parameters:
vParameter -

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.

setClassName

public void setClassName(java.lang.String className)
Sets the value of field 'className'.

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

setParameter

public void setParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

setParameter

public void setParameter(Parameter[] parameterArray)
Parameters:
parameterArray -

setParameterCollection

public void setParameterCollection(java.util.Collection vParameter)
Parameters:
vParameter -

setService

public void setService(java.lang.String service)
Sets the value of field 'service'.

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

unmarshal

public static Thresholder 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.