org.opennms.netmgt.config.vacuumd
Class Actions

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

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

A collection of actions

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

Constructor Summary
Actions()
           
 
Method Summary
 void addAction(Action vAction)
          Method addAction
 void addAction(int index, Action vAction)
          Method addAction
 void clearAction()
          Method clearAction
 java.util.Enumeration enumerateAction()
          Method enumerateAction
 Action[] getAction()
          Method getAction
 Action getAction(int index)
          Method getAction
 java.util.ArrayList getActionCollection()
          Method getActionCollection Returns a reference to 'action'.
 int getActionCount()
          Method getActionCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeAction(Action vAction)
          Method removeAction
 void setAction(Action[] actionArray)
          Method setAction
 void setAction(java.util.ArrayList actionCollection)
          Method setAction Sets the value of 'action' by copying the given ArrayList.
 void setAction(int index, Action vAction)
          Method setAction
 void setActionCollection(java.util.ArrayList actionCollection)
          Method setActionCollection Sets the value of 'action' 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

Actions

public Actions()
Method Detail

addAction

public void addAction(Action vAction)
               throws java.lang.IndexOutOfBoundsException
Method addAction

Parameters:
vAction -
Throws:
java.lang.IndexOutOfBoundsException

addAction

public void addAction(int index,
                      Action vAction)
               throws java.lang.IndexOutOfBoundsException
Method addAction

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

clearAction

public void clearAction()
Method clearAction


enumerateAction

public java.util.Enumeration enumerateAction()
Method enumerateAction

Returns:
Enumeration

getAction

public Action getAction(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getAction

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

getAction

public Action[] getAction()
Method getAction

Returns:
Action

getActionCollection

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

Returns:
ArrayList

getActionCount

public int getActionCount()
Method getActionCount

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

removeAction

public boolean removeAction(Action vAction)
Method removeAction

Parameters:
vAction -
Returns:
boolean

setAction

public void setAction(int index,
                      Action vAction)
               throws java.lang.IndexOutOfBoundsException
Method setAction

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

setAction

public void setAction(Action[] actionArray)
Method setAction

Parameters:
actionArray -

setAction

public void setAction(java.util.ArrayList actionCollection)
Method setAction Sets the value of 'action' by copying the given ArrayList.

Parameters:
actionCollection - the Vector to copy.

setActionCollection

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

Parameters:
actionCollection - 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.