public class Notification extends Object implements Serializable
Constructor and Description |
---|
Notification() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(int index,
Parameter vParameter) |
void |
addParameter(Parameter vParameter) |
Enumeration<Parameter> |
enumerateParameter()
Method enumerateParameter.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getDescription()
Returns the value of field 'description'.
|
String |
getDestinationPath()
Returns the value of field 'destinationPath'.
|
String |
getEventSeverity()
Returns the value of field 'eventSeverity'.
|
String |
getName()
Returns the value of field 'name'.
|
String |
getNoticeQueue()
Returns the value of field 'noticeQueue'.
|
String |
getNumericMessage()
Returns the value of field 'numericMessage'.
|
Parameter[] |
getParameter()
Method getParameter.Returns the contents of the collection
in an Array.
|
Parameter |
getParameter(int index)
Method getParameter.
|
List<Parameter> |
getParameterCollection()
Method getParameterCollection.Returns a reference to
'_parameterList'.
|
int |
getParameterCount()
Method getParameterCount.
|
String |
getRule()
Returns the value of field 'rule'.
|
String |
getStatus()
Returns the value of field 'status'.
|
String |
getSubject()
Returns the value of field 'subject'.
|
String |
getTextMessage()
Returns the value of field 'textMessage'.
|
String |
getUei()
Returns the value of field 'uei'.
|
Varbind |
getVarbind()
Returns the value of field 'varbind'.
|
String |
getWriteable()
Returns the value of field 'writeable'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Parameter> |
iterateParameter()
Method iterateParameter.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllParameter() |
boolean |
removeParameter(Parameter vParameter)
Method removeParameter.
|
Parameter |
removeParameterAt(int index)
Method removeParameterAt.
|
void |
setDescription(String description)
Sets the value of field 'description'.
|
void |
setDestinationPath(String destinationPath)
Sets the value of field 'destinationPath'.
|
void |
setEventSeverity(String eventSeverity)
Sets the value of field 'eventSeverity'.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setNoticeQueue(String noticeQueue)
Sets the value of field 'noticeQueue'.
|
void |
setNumericMessage(String numericMessage)
Sets the value of field 'numericMessage'.
|
void |
setParameter(int index,
Parameter vParameter) |
void |
setParameter(List<Parameter> vParameterList)
Sets the value of '_parameterList' by copying the given
Vector.
|
void |
setParameter(Parameter[] vParameterArray) |
void |
setParameterCollection(List<Parameter> parameterList)
Deprecated.
|
void |
setRule(String rule)
Sets the value of field 'rule'.
|
void |
setStatus(String status)
Sets the value of field 'status'.
|
void |
setSubject(String subject)
Sets the value of field 'subject'.
|
void |
setTextMessage(String textMessage)
Sets the value of field 'textMessage'.
|
void |
setUei(String uei)
Sets the value of field 'uei'.
|
void |
setVarbind(Varbind varbind)
Sets the value of field 'varbind'.
|
void |
setWriteable(String writeable)
Sets the value of field 'writeable'.
|
static Notification |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addParameter(Parameter vParameter) throws IndexOutOfBoundsException
vParameter
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addParameter(int index, Parameter vParameter) throws IndexOutOfBoundsException
index
- vParameter
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Parameter> enumerateParameter()
public boolean equals(Object obj)
public String getDescription()
public String getDestinationPath()
public String getEventSeverity()
public String getName()
public String getNoticeQueue()
public String getNumericMessage()
public Parameter getParameter(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Parameter[] getParameter()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Parameter> getParameterCollection()
public int getParameterCount()
public String getRule()
public String getStatus()
public String getSubject()
public String getTextMessage()
public String getUei()
public Varbind getVarbind()
public String getWriteable()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Parameter> iterateParameter()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllParameter()
public boolean removeParameter(Parameter vParameter)
vParameter
- public Parameter removeParameterAt(int index)
index
- public void setDescription(String description)
description
- the value of field 'description'.public void setDestinationPath(String destinationPath)
destinationPath
- the value of field 'destinationPath'.public void setEventSeverity(String eventSeverity)
eventSeverity
- the value of field 'eventSeverity'.public void setName(String name)
name
- the value of field 'name'.public void setNoticeQueue(String noticeQueue)
noticeQueue
- the value of field 'noticeQueue'.public void setNumericMessage(String numericMessage)
numericMessage
- the value of field 'numericMessage'.public void setParameter(int index, Parameter vParameter) throws IndexOutOfBoundsException
index
- vParameter
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setParameter(Parameter[] vParameterArray)
vParameterArray
- public void setParameter(List<Parameter> vParameterList)
vParameterList
- the Vector to copy.public void setParameterCollection(List<Parameter> parameterList)
parameterList
- the Vector to set.public void setRule(String rule)
rule
- the value of field 'rule'.public void setStatus(String status)
status
- the value of field 'status'.public void setSubject(String subject)
subject
- the value of field 'subject'.public void setTextMessage(String textMessage)
textMessage
- the value of field 'textMessage'.public void setUei(String uei)
uei
- the value of field 'uei'.public void setVarbind(Varbind varbind)
varbind
- the value of field 'varbind'.public void setWriteable(String writeable)
writeable
- the value of field 'writeable'.public static Notification unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.