org.opennms.netmgt.config.datacollection
Class Parameters

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

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

Class Parameters.

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

Constructor Summary
Parameters()
           
 
Method Summary
 void addParameter(int index, Parameter vParameter)
          Method addParameter
 void addParameter(Parameter vParameter)
          Method addParameter
 void clearParameter()
          Method clearParameter
 java.util.Enumeration enumerateParameter()
          Method enumerateParameter
 Parameter[] getParameter()
          Method getParameter
 Parameter getParameter(int index)
          Method getParameter
 java.util.ArrayList getParameterCollection()
          Method getParameterCollection Returns a reference to 'parameter'.
 int getParameterCount()
          Method getParameterCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeParameter(Parameter vParameter)
          Method removeParameter
 void setParameter(java.util.ArrayList parameterCollection)
          Method setParameter Sets the value of 'parameter' by copying the given ArrayList.
 void setParameter(int index, Parameter vParameter)
          Method setParameter
 void setParameter(Parameter[] parameterArray)
          Method setParameter
 void setParameterCollection(java.util.ArrayList parameterCollection)
          Method setParameterCollection Sets the value of 'parameter' 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

Parameters

public Parameters()
Method Detail

addParameter

public void addParameter(Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method addParameter

Parameters:
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

addParameter

public void addParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method addParameter

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

clearParameter

public void clearParameter()
Method clearParameter


enumerateParameter

public java.util.Enumeration enumerateParameter()
Method enumerateParameter

Returns:
Enumeration

getParameter

public Parameter getParameter(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getParameter

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

getParameter

public Parameter[] getParameter()
Method getParameter

Returns:
Parameter

getParameterCollection

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

Returns:
ArrayList

getParameterCount

public int getParameterCount()
Method getParameterCount

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

removeParameter

public boolean removeParameter(Parameter vParameter)
Method removeParameter

Parameters:
vParameter -
Returns:
boolean

setParameter

public void setParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method setParameter

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

setParameter

public void setParameter(Parameter[] parameterArray)
Method setParameter

Parameters:
parameterArray -

setParameter

public void setParameter(java.util.ArrayList parameterCollection)
Method setParameter Sets the value of 'parameter' by copying the given ArrayList.

Parameters:
parameterCollection - the Vector to copy.

setParameterCollection

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

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