org.opennms.netmgt.config.notifications
Class Notification

java.lang.Object
  extended by org.opennms.netmgt.config.notifications.Notification
All Implemented Interfaces:
java.io.Serializable

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

Class Notification.

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

Constructor Summary
Notification()
           
 
Method Summary
 void addParameter(int index, Parameter vParameter)
          Method addParameter
 void addParameter(Parameter vParameter)
          Method addParameter
 void clearParameter()
          Method clearParameter
 java.util.Enumeration enumerateParameter()
          Method enumerateParameter
 java.lang.String getDescription()
          Returns the value of field 'description'.
 java.lang.String getDestinationPath()
          Returns the value of field 'destinationPath'.
 java.lang.String getEventSeverity()
          Returns the value of field 'eventSeverity'.
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getNoticeQueue()
          Returns the value of field 'noticeQueue'.
 java.lang.String getNumericMessage()
          Returns the value of field 'numericMessage'.
 Parameter[] getParameter()
          Method getParameter
 Parameter getParameter(int index)
          Method getParameter
 java.util.ArrayList getParameterCollection()
          Method getParameterCollection Returns a reference to 'parameter'.
 int getParameterCount()
          Method getParameterCount
 java.lang.String getRule()
          Returns the value of field 'rule'.
 java.lang.String getStatus()
          Returns the value of field 'status'.
 java.lang.String getSubject()
          Returns the value of field 'subject'.
 java.lang.String getTextMessage()
          Returns the value of field 'textMessage'.
 java.lang.String getUei()
          Returns the value of field 'uei'.
 Varbind getVarbind()
          Returns the value of field 'varbind'.
 java.lang.String getWriteable()
          Returns the value of field 'writeable'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeParameter(Parameter vParameter)
          Method removeParameter
 void setDescription(java.lang.String description)
          Sets the value of field 'description'.
 void setDestinationPath(java.lang.String destinationPath)
          Sets the value of field 'destinationPath'.
 void setEventSeverity(java.lang.String eventSeverity)
          Sets the value of field 'eventSeverity'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setNoticeQueue(java.lang.String noticeQueue)
          Sets the value of field 'noticeQueue'.
 void setNumericMessage(java.lang.String numericMessage)
          Sets the value of field 'numericMessage'.
 void setParameter(java.util.ArrayList parameterCollection)
          Method setParameter Sets the value of 'parameter' by copying the given ArrayList.
 void setParameter(int index, Parameter vParameter)
          Method setParameter
 void setParameter(Parameter[] parameterArray)
          Method setParameter
 void setParameterCollection(java.util.ArrayList parameterCollection)
          Method setParameterCollection Sets the value of 'parameter' by setting it to the given ArrayList.
 void setRule(java.lang.String rule)
          Sets the value of field 'rule'.
 void setStatus(java.lang.String status)
          Sets the value of field 'status'.
 void setSubject(java.lang.String subject)
          Sets the value of field 'subject'.
 void setTextMessage(java.lang.String textMessage)
          Sets the value of field 'textMessage'.
 void setUei(java.lang.String uei)
          Sets the value of field 'uei'.
 void setVarbind(Varbind varbind)
          Sets the value of field 'varbind'.
 void setWriteable(java.lang.String writeable)
          Sets the value of field 'writeable'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notification

public Notification()
Method Detail

addParameter

public void addParameter(Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method addParameter

Parameters:
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

addParameter

public void addParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method addParameter

Parameters:
index -
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

clearParameter

public void clearParameter()
Method clearParameter


enumerateParameter

public java.util.Enumeration enumerateParameter()
Method enumerateParameter

Returns:
Enumeration

getDescription

public java.lang.String getDescription()
Returns the value of field 'description'.

Returns:
String

getDestinationPath

public java.lang.String getDestinationPath()
Returns the value of field 'destinationPath'.

Returns:
String

getEventSeverity

public java.lang.String getEventSeverity()
Returns the value of field 'eventSeverity'.

Returns:
String

getName

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

Returns:
String

getNoticeQueue

public java.lang.String getNoticeQueue()
Returns the value of field 'noticeQueue'.

Returns:
String

getNumericMessage

public java.lang.String getNumericMessage()
Returns the value of field 'numericMessage'.

Returns:
String

getParameter

public Parameter getParameter(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getParameter

Parameters:
index -
Returns:
Parameter
Throws:
java.lang.IndexOutOfBoundsException

getParameter

public Parameter[] getParameter()
Method getParameter

Returns:
Parameter

getParameterCollection

public java.util.ArrayList getParameterCollection()
Method getParameterCollection Returns a reference to 'parameter'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getParameterCount

public int getParameterCount()
Method getParameterCount

Returns:
int

getRule

public java.lang.String getRule()
Returns the value of field 'rule'.

Returns:
String

getStatus

public java.lang.String getStatus()
Returns the value of field 'status'.

Returns:
String

getSubject

public java.lang.String getSubject()
Returns the value of field 'subject'.

Returns:
String

getTextMessage

public java.lang.String getTextMessage()
Returns the value of field 'textMessage'.

Returns:
String

getUei

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

Returns:
String

getVarbind

public Varbind getVarbind()
Returns the value of field 'varbind'. The field 'varbind' has the following description: The varbind element

Returns:
Varbind

getWriteable

public java.lang.String getWriteable()
Returns the value of field 'writeable'.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeParameter

public boolean removeParameter(Parameter vParameter)
Method removeParameter

Parameters:
vParameter -
Returns:
boolean

setDescription

public void setDescription(java.lang.String description)
Sets the value of field 'description'.

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

setDestinationPath

public void setDestinationPath(java.lang.String destinationPath)
Sets the value of field 'destinationPath'.

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

setEventSeverity

public void setEventSeverity(java.lang.String eventSeverity)
Sets the value of field 'eventSeverity'.

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

setName

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

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

setNoticeQueue

public void setNoticeQueue(java.lang.String noticeQueue)
Sets the value of field 'noticeQueue'.

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

setNumericMessage

public void setNumericMessage(java.lang.String numericMessage)
Sets the value of field 'numericMessage'.

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

setParameter

public void setParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method setParameter

Parameters:
index -
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

setParameter

public void setParameter(Parameter[] parameterArray)
Method setParameter

Parameters:
parameterArray -

setParameter

public void setParameter(java.util.ArrayList parameterCollection)
Method setParameter Sets the value of 'parameter' by copying the given ArrayList.

Parameters:
parameterCollection - the Vector to copy.

setParameterCollection

public void setParameterCollection(java.util.ArrayList parameterCollection)
Method setParameterCollection Sets the value of 'parameter' by setting it to the given ArrayList. No type checking is performed.

Parameters:
parameterCollection - the ArrayList to copy.

setRule

public void setRule(java.lang.String rule)
Sets the value of field 'rule'.

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

setStatus

public void setStatus(java.lang.String status)
Sets the value of field 'status'.

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

setSubject

public void setSubject(java.lang.String subject)
Sets the value of field 'subject'.

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

setTextMessage

public void setTextMessage(java.lang.String textMessage)
Sets the value of field 'textMessage'.

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

setUei

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

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

setVarbind

public void setVarbind(Varbind varbind)
Sets the value of field 'varbind'. The field 'varbind' has the following description: The varbind element

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

setWriteable

public void setWriteable(java.lang.String writeable)
Sets the value of field 'writeable'.

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

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.