OpenNMS API 1.2.3

org.opennms.netmgt.config.destinationPaths
Class Path

java.lang.Object
  extended byorg.opennms.netmgt.config.destinationPaths.Path
All Implemented Interfaces:
java.io.Serializable

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

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

Field Summary
private  java.util.ArrayList _escalateList
           
private  java.lang.String _initialDelay
           
private  java.lang.String _name
           
private  java.util.ArrayList _targetList
           
private  java.util.Vector propertyChangeListeners
           
 
Constructor Summary
Path()
           
 
Method Summary
 void addEscalate(Escalate vEscalate)
           
 void addEscalate(int index, Escalate vEscalate)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Registers a PropertyChangeListener with this class.
 void addTarget(int index, Target vTarget)
           
 void addTarget(Target vTarget)
           
 void clearEscalate()
           
 void clearTarget()
           
 java.util.Enumeration enumerateEscalate()
           
 java.util.Enumeration enumerateTarget()
           
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 Escalate[] getEscalate()
           
 Escalate getEscalate(int index)
           
 java.util.Collection getEscalateCollection()
           
 int getEscalateCount()
           
 java.lang.String getInitialDelay()
          Returns the value of field 'initialDelay'.
 java.lang.String getName()
          Returns the value of field 'name'.
 Target[] getTarget()
           
 Target getTarget(int index)
           
 java.util.Collection getTargetCollection()
           
 int getTargetCount()
           
 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 removeEscalate(Escalate vEscalate)
           
 boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners.
 boolean removeTarget(Target vTarget)
           
 void setEscalate(Escalate[] escalateArray)
           
 void setEscalate(int index, Escalate vEscalate)
           
 void setEscalateCollection(java.util.Collection vEscalate)
           
 void setInitialDelay(java.lang.String initialDelay)
          Sets the value of field 'initialDelay'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setTarget(int index, Target vTarget)
           
 void setTarget(Target[] targetArray)
           
 void setTargetCollection(java.util.Collection vTarget)
           
static Path 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

_name

private java.lang.String _name

_initialDelay

private java.lang.String _initialDelay

_targetList

private java.util.ArrayList _targetList

_escalateList

private java.util.ArrayList _escalateList

propertyChangeListeners

private java.util.Vector propertyChangeListeners
Constructor Detail

Path

public Path()
Method Detail

addEscalate

public void addEscalate(Escalate vEscalate)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
vEscalate -
Throws:
java.lang.IndexOutOfBoundsException

addEscalate

public void addEscalate(int index,
                        Escalate vEscalate)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vEscalate -
Throws:
java.lang.IndexOutOfBoundsException

addPropertyChangeListener

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

Parameters:
pcl - The PropertyChangeListener to register.

addTarget

public void addTarget(Target vTarget)
               throws java.lang.IndexOutOfBoundsException
Parameters:
vTarget -
Throws:
java.lang.IndexOutOfBoundsException

addTarget

public void addTarget(int index,
                      Target vTarget)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vTarget -
Throws:
java.lang.IndexOutOfBoundsException

clearEscalate

public void clearEscalate()

clearTarget

public void clearTarget()

enumerateEscalate

public java.util.Enumeration enumerateEscalate()

enumerateTarget

public java.util.Enumeration enumerateTarget()

equals

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

Parameters:
obj -

getEscalate

public Escalate getEscalate(int index)
                     throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getEscalate

public Escalate[] getEscalate()

getEscalateCollection

public java.util.Collection getEscalateCollection()

getEscalateCount

public int getEscalateCount()

getInitialDelay

public java.lang.String getInitialDelay()
Returns the value of field 'initialDelay'.

Returns:
the value of field 'initialDelay'.

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
the value of field 'name'.

getTarget

public Target getTarget(int index)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getTarget

public Target[] getTarget()

getTargetCollection

public java.util.Collection getTargetCollection()

getTargetCount

public int getTargetCount()

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.

removeEscalate

public boolean removeEscalate(Escalate vEscalate)
Parameters:
vEscalate -

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.

removeTarget

public boolean removeTarget(Target vTarget)
Parameters:
vTarget -

setEscalate

public void setEscalate(int index,
                        Escalate vEscalate)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vEscalate -
Throws:
java.lang.IndexOutOfBoundsException

setEscalate

public void setEscalate(Escalate[] escalateArray)
Parameters:
escalateArray -

setEscalateCollection

public void setEscalateCollection(java.util.Collection vEscalate)
Parameters:
vEscalate -

setInitialDelay

public void setInitialDelay(java.lang.String initialDelay)
Sets the value of field 'initialDelay'.

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

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

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

setTarget

public void setTarget(int index,
                      Target vTarget)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vTarget -
Throws:
java.lang.IndexOutOfBoundsException

setTarget

public void setTarget(Target[] targetArray)
Parameters:
targetArray -

setTargetCollection

public void setTargetCollection(java.util.Collection vTarget)
Parameters:
vTarget -

unmarshal

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