org.opennms.netmgt.config.notificationCommands
Class NotificationCommands

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

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

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

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

Constructor Summary
NotificationCommands()
           
 
Method Summary
 void addCommand(Command vCommand)
          Method addCommand
 void addCommand(int index, Command vCommand)
          Method addCommand
 void clearCommand()
          Method clearCommand
 java.util.Enumeration enumerateCommand()
          Method enumerateCommand
 Command[] getCommand()
          Method getCommand
 Command getCommand(int index)
          Method getCommand
 java.util.ArrayList getCommandCollection()
          Method getCommandCollection Returns a reference to 'command'.
 int getCommandCount()
          Method getCommandCount
 Header getHeader()
          Returns the value of field 'header'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeCommand(Command vCommand)
          Method removeCommand
 void setCommand(java.util.ArrayList commandCollection)
          Method setCommand Sets the value of 'command' by copying the given ArrayList.
 void setCommand(Command[] commandArray)
          Method setCommand
 void setCommand(int index, Command vCommand)
          Method setCommand
 void setCommandCollection(java.util.ArrayList commandCollection)
          Method setCommandCollection Sets the value of 'command' by setting it to the given ArrayList.
 void setHeader(Header header)
          Sets the value of field 'header'.
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

NotificationCommands

public NotificationCommands()
Method Detail

addCommand

public void addCommand(Command vCommand)
                throws java.lang.IndexOutOfBoundsException
Method addCommand

Parameters:
vCommand -
Throws:
java.lang.IndexOutOfBoundsException

addCommand

public void addCommand(int index,
                       Command vCommand)
                throws java.lang.IndexOutOfBoundsException
Method addCommand

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

clearCommand

public void clearCommand()
Method clearCommand


enumerateCommand

public java.util.Enumeration enumerateCommand()
Method enumerateCommand

Returns:
Enumeration

getCommand

public Command getCommand(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getCommand

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

getCommand

public Command[] getCommand()
Method getCommand

Returns:
Command

getCommandCollection

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

Returns:
ArrayList

getCommandCount

public int getCommandCount()
Method getCommandCount

Returns:
int

getHeader

public Header getHeader()
Returns the value of field 'header'.

Returns:
Header

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

removeCommand

public boolean removeCommand(Command vCommand)
Method removeCommand

Parameters:
vCommand -
Returns:
boolean

setCommand

public void setCommand(int index,
                       Command vCommand)
                throws java.lang.IndexOutOfBoundsException
Method setCommand

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

setCommand

public void setCommand(Command[] commandArray)
Method setCommand

Parameters:
commandArray -

setCommand

public void setCommand(java.util.ArrayList commandCollection)
Method setCommand Sets the value of 'command' by copying the given ArrayList.

Parameters:
commandCollection - the Vector to copy.

setCommandCollection

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

Parameters:
commandCollection - the ArrayList to copy.

setHeader

public void setHeader(Header header)
Sets the value of field 'header'.

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

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.