org.opennms.netmgt.config.datacollection
Class Collect

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

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

container for list of MIB groups to be collected for the system

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

Constructor Summary
Collect()
           
 
Method Summary
 void addIncludeGroup(int index, java.lang.String vIncludeGroup)
          Method addIncludeGroup
 void addIncludeGroup(java.lang.String vIncludeGroup)
          Method addIncludeGroup
 void clearIncludeGroup()
          Method clearIncludeGroup
 java.util.Enumeration enumerateIncludeGroup()
          Method enumerateIncludeGroup
 java.lang.String[] getIncludeGroup()
          Method getIncludeGroup
 java.lang.String getIncludeGroup(int index)
          Method getIncludeGroup
 java.util.ArrayList getIncludeGroupCollection()
          Method getIncludeGroupCollection Returns a reference to 'includeGroup'.
 int getIncludeGroupCount()
          Method getIncludeGroupCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeIncludeGroup(java.lang.String vIncludeGroup)
          Method removeIncludeGroup
 void setIncludeGroup(java.util.ArrayList includeGroupCollection)
          Method setIncludeGroup Sets the value of 'includeGroup' by copying the given ArrayList.
 void setIncludeGroup(int index, java.lang.String vIncludeGroup)
          Method setIncludeGroup
 void setIncludeGroup(java.lang.String[] includeGroupArray)
          Method setIncludeGroup
 void setIncludeGroupCollection(java.util.ArrayList includeGroupCollection)
          Method setIncludeGroupCollection Sets the value of 'includeGroup' 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

Collect

public Collect()
Method Detail

addIncludeGroup

public void addIncludeGroup(java.lang.String vIncludeGroup)
                     throws java.lang.IndexOutOfBoundsException
Method addIncludeGroup

Parameters:
vIncludeGroup -
Throws:
java.lang.IndexOutOfBoundsException

addIncludeGroup

public void addIncludeGroup(int index,
                            java.lang.String vIncludeGroup)
                     throws java.lang.IndexOutOfBoundsException
Method addIncludeGroup

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

clearIncludeGroup

public void clearIncludeGroup()
Method clearIncludeGroup


enumerateIncludeGroup

public java.util.Enumeration enumerateIncludeGroup()
Method enumerateIncludeGroup

Returns:
Enumeration

getIncludeGroup

public java.lang.String getIncludeGroup(int index)
                                 throws java.lang.IndexOutOfBoundsException
Method getIncludeGroup

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

getIncludeGroup

public java.lang.String[] getIncludeGroup()
Method getIncludeGroup

Returns:
String

getIncludeGroupCollection

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

Returns:
ArrayList

getIncludeGroupCount

public int getIncludeGroupCount()
Method getIncludeGroupCount

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

removeIncludeGroup

public boolean removeIncludeGroup(java.lang.String vIncludeGroup)
Method removeIncludeGroup

Parameters:
vIncludeGroup -
Returns:
boolean

setIncludeGroup

public void setIncludeGroup(int index,
                            java.lang.String vIncludeGroup)
                     throws java.lang.IndexOutOfBoundsException
Method setIncludeGroup

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

setIncludeGroup

public void setIncludeGroup(java.lang.String[] includeGroupArray)
Method setIncludeGroup

Parameters:
includeGroupArray -

setIncludeGroup

public void setIncludeGroup(java.util.ArrayList includeGroupCollection)
Method setIncludeGroup Sets the value of 'includeGroup' by copying the given ArrayList.

Parameters:
includeGroupCollection - the Vector to copy.

setIncludeGroupCollection

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

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