OpenNMS API 1.2.3

org.opennms.netmgt.xml.eventconf
Class Event

java.lang.Object
  extended byorg.opennms.netmgt.xml.eventconf.Event
All Implemented Interfaces:
java.io.Serializable

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

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

Field Summary
private  Autoacknowledge _autoacknowledge
           
private  java.util.ArrayList _autoactionList
           
private  Correlation _correlation
           
private  java.lang.String _descr
           
private  java.lang.String _eventLabel
           
private  java.util.ArrayList _forwardList
           
private  java.util.ArrayList _loggroupList
           
private  Logmsg _logmsg
           
private  Mask _mask
           
private  java.lang.String _mouseovertext
           
private  java.util.ArrayList _operactionList
           
private  java.lang.String _operinstruct
           
private  java.util.ArrayList _scriptList
           
private  java.lang.String _severity
           
private  Snmp _snmp
           
private  Tticket _tticket
           
private  java.lang.String _uei
           
private  java.util.Vector propertyChangeListeners
           
 
Constructor Summary
Event()
           
 
Method Summary
 void addAutoaction(Autoaction vAutoaction)
           
 void addAutoaction(int index, Autoaction vAutoaction)
           
 void addForward(Forward vForward)
           
 void addForward(int index, Forward vForward)
           
 void addLoggroup(int index, java.lang.String vLoggroup)
           
 void addLoggroup(java.lang.String vLoggroup)
           
 void addOperaction(int index, Operaction vOperaction)
           
 void addOperaction(Operaction vOperaction)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Registers a PropertyChangeListener with this class.
 void addScript(int index, Script vScript)
           
 void addScript(Script vScript)
           
 void clearAutoaction()
           
 void clearForward()
           
 void clearLoggroup()
           
 void clearOperaction()
           
 void clearScript()
           
 java.util.Enumeration enumerateAutoaction()
           
 java.util.Enumeration enumerateForward()
           
 java.util.Enumeration enumerateLoggroup()
           
 java.util.Enumeration enumerateOperaction()
           
 java.util.Enumeration enumerateScript()
           
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 Autoacknowledge getAutoacknowledge()
          Returns the value of field 'autoacknowledge'.
 Autoaction[] getAutoaction()
           
 Autoaction getAutoaction(int index)
           
 java.util.Collection getAutoactionCollection()
           
 int getAutoactionCount()
           
 Correlation getCorrelation()
          Returns the value of field 'correlation'.
 java.lang.String getDescr()
          Returns the value of field 'descr'.
 java.lang.String getEventLabel()
          Returns the value of field 'eventLabel'.
 Forward[] getForward()
           
 Forward getForward(int index)
           
 java.util.Collection getForwardCollection()
           
 int getForwardCount()
           
 java.lang.String[] getLoggroup()
           
 java.lang.String getLoggroup(int index)
           
 java.util.Collection getLoggroupCollection()
           
 int getLoggroupCount()
           
 Logmsg getLogmsg()
          Returns the value of field 'logmsg'.
 Mask getMask()
          Returns the value of field 'mask'.
 java.lang.String getMouseovertext()
          Returns the value of field 'mouseovertext'.
 Operaction[] getOperaction()
           
 Operaction getOperaction(int index)
           
 java.util.Collection getOperactionCollection()
           
 int getOperactionCount()
           
 java.lang.String getOperinstruct()
          Returns the value of field 'operinstruct'.
 Script[] getScript()
           
 Script getScript(int index)
           
 java.util.Collection getScriptCollection()
           
 int getScriptCount()
           
 java.lang.String getSeverity()
          Returns the value of field 'severity'.
 Snmp getSnmp()
          Returns the value of field 'snmp'.
 Tticket getTticket()
          Returns the value of field 'tticket'.
 java.lang.String getUei()
          Returns the value of field 'uei'.
 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 removeAutoaction(Autoaction vAutoaction)
           
 boolean removeForward(Forward vForward)
           
 boolean removeLoggroup(java.lang.String vLoggroup)
           
 boolean removeOperaction(Operaction vOperaction)
           
 boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners.
 boolean removeScript(Script vScript)
           
 void setAutoacknowledge(Autoacknowledge autoacknowledge)
          Sets the value of field 'autoacknowledge'.
 void setAutoaction(Autoaction[] autoactionArray)
           
 void setAutoaction(int index, Autoaction vAutoaction)
           
 void setAutoactionCollection(java.util.Collection vAutoaction)
           
 void setCorrelation(Correlation correlation)
          Sets the value of field 'correlation'.
 void setDescr(java.lang.String descr)
          Sets the value of field 'descr'.
 void setEventLabel(java.lang.String eventLabel)
          Sets the value of field 'eventLabel'.
 void setForward(Forward[] forwardArray)
           
 void setForward(int index, Forward vForward)
           
 void setForwardCollection(java.util.Collection vForward)
           
 void setLoggroup(int index, java.lang.String vLoggroup)
           
 void setLoggroup(java.lang.String[] loggroupArray)
           
 void setLoggroupCollection(java.util.Collection vLoggroup)
           
 void setLogmsg(Logmsg logmsg)
          Sets the value of field 'logmsg'.
 void setMask(Mask mask)
          Sets the value of field 'mask'.
 void setMouseovertext(java.lang.String mouseovertext)
          Sets the value of field 'mouseovertext'.
 void setOperaction(int index, Operaction vOperaction)
           
 void setOperaction(Operaction[] operactionArray)
           
 void setOperactionCollection(java.util.Collection vOperaction)
           
 void setOperinstruct(java.lang.String operinstruct)
          Sets the value of field 'operinstruct'.
 void setScript(int index, Script vScript)
           
 void setScript(Script[] scriptArray)
           
 void setScriptCollection(java.util.Collection vScript)
           
 void setSeverity(java.lang.String severity)
          Sets the value of field 'severity'.
 void setSnmp(Snmp snmp)
          Sets the value of field 'snmp'.
 void setTticket(Tticket tticket)
          Sets the value of field 'tticket'.
 void setUei(java.lang.String uei)
          Sets the value of field 'uei'.
static Event 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

_mask

private Mask _mask

_uei

private java.lang.String _uei

_eventLabel

private java.lang.String _eventLabel

_snmp

private Snmp _snmp

_descr

private java.lang.String _descr

_logmsg

private Logmsg _logmsg

_severity

private java.lang.String _severity

_correlation

private Correlation _correlation

_operinstruct

private java.lang.String _operinstruct

_autoactionList

private java.util.ArrayList _autoactionList

_operactionList

private java.util.ArrayList _operactionList

_autoacknowledge

private Autoacknowledge _autoacknowledge

_loggroupList

private java.util.ArrayList _loggroupList

_tticket

private Tticket _tticket

_forwardList

private java.util.ArrayList _forwardList

_scriptList

private java.util.ArrayList _scriptList

_mouseovertext

private java.lang.String _mouseovertext

propertyChangeListeners

private java.util.Vector propertyChangeListeners
Constructor Detail

Event

public Event()
Method Detail

addAutoaction

public void addAutoaction(Autoaction vAutoaction)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
vAutoaction -
Throws:
java.lang.IndexOutOfBoundsException

addAutoaction

public void addAutoaction(int index,
                          Autoaction vAutoaction)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAutoaction -
Throws:
java.lang.IndexOutOfBoundsException

addForward

public void addForward(Forward vForward)
                throws java.lang.IndexOutOfBoundsException
Parameters:
vForward -
Throws:
java.lang.IndexOutOfBoundsException

addForward

public void addForward(int index,
                       Forward vForward)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vForward -
Throws:
java.lang.IndexOutOfBoundsException

addLoggroup

public void addLoggroup(java.lang.String vLoggroup)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
vLoggroup -
Throws:
java.lang.IndexOutOfBoundsException

addLoggroup

public void addLoggroup(int index,
                        java.lang.String vLoggroup)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vLoggroup -
Throws:
java.lang.IndexOutOfBoundsException

addOperaction

public void addOperaction(Operaction vOperaction)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
vOperaction -
Throws:
java.lang.IndexOutOfBoundsException

addOperaction

public void addOperaction(int index,
                          Operaction vOperaction)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vOperaction -
Throws:
java.lang.IndexOutOfBoundsException

addPropertyChangeListener

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

Parameters:
pcl - The PropertyChangeListener to register.

addScript

public void addScript(Script vScript)
               throws java.lang.IndexOutOfBoundsException
Parameters:
vScript -
Throws:
java.lang.IndexOutOfBoundsException

addScript

public void addScript(int index,
                      Script vScript)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vScript -
Throws:
java.lang.IndexOutOfBoundsException

clearAutoaction

public void clearAutoaction()

clearForward

public void clearForward()

clearLoggroup

public void clearLoggroup()

clearOperaction

public void clearOperaction()

clearScript

public void clearScript()

enumerateAutoaction

public java.util.Enumeration enumerateAutoaction()

enumerateForward

public java.util.Enumeration enumerateForward()

enumerateLoggroup

public java.util.Enumeration enumerateLoggroup()

enumerateOperaction

public java.util.Enumeration enumerateOperaction()

enumerateScript

public java.util.Enumeration enumerateScript()

equals

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

Parameters:
obj -

getAutoacknowledge

public Autoacknowledge getAutoacknowledge()
Returns the value of field 'autoacknowledge'.

Returns:
the value of field 'autoacknowledge'.

getAutoaction

public Autoaction getAutoaction(int index)
                         throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getAutoaction

public Autoaction[] getAutoaction()

getAutoactionCollection

public java.util.Collection getAutoactionCollection()

getAutoactionCount

public int getAutoactionCount()

getCorrelation

public Correlation getCorrelation()
Returns the value of field 'correlation'.

Returns:
the value of field 'correlation'.

getDescr

public java.lang.String getDescr()
Returns the value of field 'descr'.

Returns:
the value of field 'descr'.

getEventLabel

public java.lang.String getEventLabel()
Returns the value of field 'eventLabel'.

Returns:
the value of field 'eventLabel'.

getForward

public Forward getForward(int index)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getForward

public Forward[] getForward()

getForwardCollection

public java.util.Collection getForwardCollection()

getForwardCount

public int getForwardCount()

getLoggroup

public java.lang.String getLoggroup(int index)
                             throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getLoggroup

public java.lang.String[] getLoggroup()

getLoggroupCollection

public java.util.Collection getLoggroupCollection()

getLoggroupCount

public int getLoggroupCount()

getLogmsg

public Logmsg getLogmsg()
Returns the value of field 'logmsg'.

Returns:
the value of field 'logmsg'.

getMask

public Mask getMask()
Returns the value of field 'mask'.

Returns:
the value of field 'mask'.

getMouseovertext

public java.lang.String getMouseovertext()
Returns the value of field 'mouseovertext'.

Returns:
the value of field 'mouseovertext'.

getOperaction

public Operaction getOperaction(int index)
                         throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getOperaction

public Operaction[] getOperaction()

getOperactionCollection

public java.util.Collection getOperactionCollection()

getOperactionCount

public int getOperactionCount()

getOperinstruct

public java.lang.String getOperinstruct()
Returns the value of field 'operinstruct'.

Returns:
the value of field 'operinstruct'.

getScript

public Script getScript(int index)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getScript

public Script[] getScript()

getScriptCollection

public java.util.Collection getScriptCollection()

getScriptCount

public int getScriptCount()

getSeverity

public java.lang.String getSeverity()
Returns the value of field 'severity'.

Returns:
the value of field 'severity'.

getSnmp

public Snmp getSnmp()
Returns the value of field 'snmp'.

Returns:
the value of field 'snmp'.

getTticket

public Tticket getTticket()
Returns the value of field 'tticket'.

Returns:
the value of field 'tticket'.

getUei

public java.lang.String getUei()
Returns the value of field 'uei'.

Returns:
the value of field 'uei'.

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.

removeAutoaction

public boolean removeAutoaction(Autoaction vAutoaction)
Parameters:
vAutoaction -

removeForward

public boolean removeForward(Forward vForward)
Parameters:
vForward -

removeLoggroup

public boolean removeLoggroup(java.lang.String vLoggroup)
Parameters:
vLoggroup -

removeOperaction

public boolean removeOperaction(Operaction vOperaction)
Parameters:
vOperaction -

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.

removeScript

public boolean removeScript(Script vScript)
Parameters:
vScript -

setAutoacknowledge

public void setAutoacknowledge(Autoacknowledge autoacknowledge)
Sets the value of field 'autoacknowledge'.

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

setAutoaction

public void setAutoaction(int index,
                          Autoaction vAutoaction)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAutoaction -
Throws:
java.lang.IndexOutOfBoundsException

setAutoaction

public void setAutoaction(Autoaction[] autoactionArray)
Parameters:
autoactionArray -

setAutoactionCollection

public void setAutoactionCollection(java.util.Collection vAutoaction)
Parameters:
vAutoaction -

setCorrelation

public void setCorrelation(Correlation correlation)
Sets the value of field 'correlation'.

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

setDescr

public void setDescr(java.lang.String descr)
Sets the value of field 'descr'.

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

setEventLabel

public void setEventLabel(java.lang.String eventLabel)
Sets the value of field 'eventLabel'.

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

setForward

public void setForward(int index,
                       Forward vForward)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vForward -
Throws:
java.lang.IndexOutOfBoundsException

setForward

public void setForward(Forward[] forwardArray)
Parameters:
forwardArray -

setForwardCollection

public void setForwardCollection(java.util.Collection vForward)
Parameters:
vForward -

setLoggroup

public void setLoggroup(int index,
                        java.lang.String vLoggroup)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vLoggroup -
Throws:
java.lang.IndexOutOfBoundsException

setLoggroup

public void setLoggroup(java.lang.String[] loggroupArray)
Parameters:
loggroupArray -

setLoggroupCollection

public void setLoggroupCollection(java.util.Collection vLoggroup)
Parameters:
vLoggroup -

setLogmsg

public void setLogmsg(Logmsg logmsg)
Sets the value of field 'logmsg'.

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

setMask

public void setMask(Mask mask)
Sets the value of field 'mask'.

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

setMouseovertext

public void setMouseovertext(java.lang.String mouseovertext)
Sets the value of field 'mouseovertext'.

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

setOperaction

public void setOperaction(int index,
                          Operaction vOperaction)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vOperaction -
Throws:
java.lang.IndexOutOfBoundsException

setOperaction

public void setOperaction(Operaction[] operactionArray)
Parameters:
operactionArray -

setOperactionCollection

public void setOperactionCollection(java.util.Collection vOperaction)
Parameters:
vOperaction -

setOperinstruct

public void setOperinstruct(java.lang.String operinstruct)
Sets the value of field 'operinstruct'.

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

setScript

public void setScript(int index,
                      Script vScript)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vScript -
Throws:
java.lang.IndexOutOfBoundsException

setScript

public void setScript(Script[] scriptArray)
Parameters:
scriptArray -

setScriptCollection

public void setScriptCollection(java.util.Collection vScript)
Parameters:
vScript -

setSeverity

public void setSeverity(java.lang.String severity)
Sets the value of field 'severity'.

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

setSnmp

public void setSnmp(Snmp snmp)
Sets the value of field 'snmp'.

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

setTticket

public void setTticket(Tticket tticket)
Sets the value of field 'tticket'.

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

setUei

public void setUei(java.lang.String uei)
Sets the value of field 'uei'.

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

unmarshal

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