org.opennms.netmgt.xml.event
Class Parms

java.lang.Object
  extended by org.opennms.netmgt.xml.event.Parms
All Implemented Interfaces:
java.io.Serializable

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

The varbinds from the trap

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

Constructor Summary
Parms()
           
 
Method Summary
 void addParm(int index, Parm vParm)
          Method addParm
 void addParm(Parm vParm)
          Method addParm
 void clearParm()
          Method clearParm
 java.util.Enumeration enumerateParm()
          Method enumerateParm
 Parm[] getParm()
          Method getParm
 Parm getParm(int index)
          Method getParm
 java.util.ArrayList getParmCollection()
          Method getParmCollection Returns a reference to 'parm'.
 int getParmCount()
          Method getParmCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeParm(Parm vParm)
          Method removeParm
 void setParm(java.util.ArrayList parmCollection)
          Method setParm Sets the value of 'parm' by copying the given ArrayList.
 void setParm(int index, Parm vParm)
          Method setParm
 void setParm(Parm[] parmArray)
          Method setParm
 void setParmCollection(java.util.ArrayList parmCollection)
          Method setParmCollection Sets the value of 'parm' 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

Parms

public Parms()
Method Detail

addParm

public void addParm(Parm vParm)
             throws java.lang.IndexOutOfBoundsException
Method addParm

Parameters:
vParm -
Throws:
java.lang.IndexOutOfBoundsException

addParm

public void addParm(int index,
                    Parm vParm)
             throws java.lang.IndexOutOfBoundsException
Method addParm

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

clearParm

public void clearParm()
Method clearParm


enumerateParm

public java.util.Enumeration enumerateParm()
Method enumerateParm

Returns:
Enumeration

getParm

public Parm getParm(int index)
             throws java.lang.IndexOutOfBoundsException
Method getParm

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

getParm

public Parm[] getParm()
Method getParm

Returns:
Parm

getParmCollection

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

Returns:
ArrayList

getParmCount

public int getParmCount()
Method getParmCount

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

removeParm

public boolean removeParm(Parm vParm)
Method removeParm

Parameters:
vParm -
Returns:
boolean

setParm

public void setParm(int index,
                    Parm vParm)
             throws java.lang.IndexOutOfBoundsException
Method setParm

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

setParm

public void setParm(Parm[] parmArray)
Method setParm

Parameters:
parmArray -

setParm

public void setParm(java.util.ArrayList parmCollection)
Method setParm Sets the value of 'parm' by copying the given ArrayList.

Parameters:
parmCollection - the Vector to copy.

setParmCollection

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

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