org.opennms.netmgt.config.notifications
Class Notifications

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

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

Top-level element for the notifications.xml configuration file.

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

Constructor Summary
Notifications()
           
 
Method Summary
 void addNotification(int index, Notification vNotification)
          Method addNotification
 void addNotification(Notification vNotification)
          Method addNotification
 void clearNotification()
          Method clearNotification
 java.util.Enumeration enumerateNotification()
          Method enumerateNotification
 Header getHeader()
          Returns the value of field 'header'.
 Notification[] getNotification()
          Method getNotification
 Notification getNotification(int index)
          Method getNotification
 java.util.ArrayList getNotificationCollection()
          Method getNotificationCollection Returns a reference to 'notification'.
 int getNotificationCount()
          Method getNotificationCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeNotification(Notification vNotification)
          Method removeNotification
 void setHeader(Header header)
          Sets the value of field 'header'.
 void setNotification(java.util.ArrayList notificationCollection)
          Method setNotification Sets the value of 'notification' by copying the given ArrayList.
 void setNotification(int index, Notification vNotification)
          Method setNotification
 void setNotification(Notification[] notificationArray)
          Method setNotification
 void setNotificationCollection(java.util.ArrayList notificationCollection)
          Method setNotificationCollection Sets the value of 'notification' by setting it to the given ArrayList.
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

Notifications

public Notifications()
Method Detail

addNotification

public void addNotification(Notification vNotification)
                     throws java.lang.IndexOutOfBoundsException
Method addNotification

Parameters:
vNotification -
Throws:
java.lang.IndexOutOfBoundsException

addNotification

public void addNotification(int index,
                            Notification vNotification)
                     throws java.lang.IndexOutOfBoundsException
Method addNotification

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

clearNotification

public void clearNotification()
Method clearNotification


enumerateNotification

public java.util.Enumeration enumerateNotification()
Method enumerateNotification

Returns:
Enumeration

getHeader

public Header getHeader()
Returns the value of field 'header'. The field 'header' has the following description: Header containing information about this configuration file.

Returns:
Header

getNotification

public Notification getNotification(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getNotification

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

getNotification

public Notification[] getNotification()
Method getNotification

Returns:
Notification

getNotificationCollection

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

Returns:
ArrayList

getNotificationCount

public int getNotificationCount()
Method getNotificationCount

Returns:
int

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

removeNotification

public boolean removeNotification(Notification vNotification)
Method removeNotification

Parameters:
vNotification -
Returns:
boolean

setHeader

public void setHeader(Header header)
Sets the value of field 'header'. The field 'header' has the following description: Header containing information about this configuration file.

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

setNotification

public void setNotification(int index,
                            Notification vNotification)
                     throws java.lang.IndexOutOfBoundsException
Method setNotification

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

setNotification

public void setNotification(Notification[] notificationArray)
Method setNotification

Parameters:
notificationArray -

setNotification

public void setNotification(java.util.ArrayList notificationCollection)
Method setNotification Sets the value of 'notification' by copying the given ArrayList.

Parameters:
notificationCollection - the Vector to copy.

setNotificationCollection

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

Parameters:
notificationCollection - the ArrayList to copy.

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.