org.opennms.netmgt.config.datacollection
Class Group

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

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

a MIB object group

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

Constructor Summary
Group()
           
 
Method Summary
 void addIncludeGroup(int index, java.lang.String vIncludeGroup)
          Method addIncludeGroup
 void addIncludeGroup(java.lang.String vIncludeGroup)
          Method addIncludeGroup
 void addMibObj(int index, MibObj vMibObj)
          Method addMibObj
 void addMibObj(MibObj vMibObj)
          Method addMibObj
 void clearIncludeGroup()
          Method clearIncludeGroup
 void clearMibObj()
          Method clearMibObj
 java.util.Enumeration enumerateIncludeGroup()
          Method enumerateIncludeGroup
 java.util.Enumeration enumerateMibObj()
          Method enumerateMibObj
 java.lang.String getIfType()
          Returns the value of field 'ifType'.
 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
 MibObj[] getMibObj()
          Method getMibObj
 MibObj getMibObj(int index)
          Method getMibObj
 java.util.ArrayList getMibObjCollection()
          Method getMibObjCollection Returns a reference to 'mibObj'.
 int getMibObjCount()
          Method getMibObjCount
 java.lang.String getName()
          Returns the value of field 'name'.
 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
 boolean removeMibObj(MibObj vMibObj)
          Method removeMibObj
 void setIfType(java.lang.String ifType)
          Sets the value of field 'ifType'.
 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.
 void setMibObj(java.util.ArrayList mibObjCollection)
          Method setMibObj Sets the value of 'mibObj' by copying the given ArrayList.
 void setMibObj(int index, MibObj vMibObj)
          Method setMibObj
 void setMibObj(MibObj[] mibObjArray)
          Method setMibObj
 void setMibObjCollection(java.util.ArrayList mibObjCollection)
          Method setMibObjCollection Sets the value of 'mibObj' by setting it to the given ArrayList.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
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

Group

public Group()
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

addMibObj

public void addMibObj(MibObj vMibObj)
               throws java.lang.IndexOutOfBoundsException
Method addMibObj

Parameters:
vMibObj -
Throws:
java.lang.IndexOutOfBoundsException

addMibObj

public void addMibObj(int index,
                      MibObj vMibObj)
               throws java.lang.IndexOutOfBoundsException
Method addMibObj

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

clearIncludeGroup

public void clearIncludeGroup()
Method clearIncludeGroup


clearMibObj

public void clearMibObj()
Method clearMibObj


enumerateIncludeGroup

public java.util.Enumeration enumerateIncludeGroup()
Method enumerateIncludeGroup

Returns:
Enumeration

enumerateMibObj

public java.util.Enumeration enumerateMibObj()
Method enumerateMibObj

Returns:
Enumeration

getIfType

public java.lang.String getIfType()
Returns the value of field 'ifType'. The field 'ifType' has the following description: Interface type. Indicates the interface types from which the groups MIB objects are to be collected. Supports individual ifType values or comma-separated list of ifType values in addition to "all" and "ignore" key words. For example: "6" indicates that OIDs from this MIB group are to be collected only for ethernet interfaces (ifType = 6) "6,22" indicates that OIDs from this MIB group are to be collected only for ethernet and serial interfaces "all" indicates that the OIDs from this MIB group are to be collected for all interfaces regardless of ifType "ignore" indicates that OIDs from this MIB group are node-level objects. Sample ifType descriptions/values: (Refer to http://www.iana.org/assignments/ianaiftype-mib for a comprehensive list.); ethernetCsmacd 6; iso8825TokenRing 9; fddi 15; sdlc 17; basicISDN 20; primaryISDN 21; propPointToPointSerial 22; ppp 23; atm 37; sonet 39; opticalChannel 195

Returns:
String

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

getMibObj

public MibObj getMibObj(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getMibObj

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

getMibObj

public MibObj[] getMibObj()
Method getMibObj

Returns:
MibObj

getMibObjCollection

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

Returns:
ArrayList

getMibObjCount

public int getMibObjCount()
Method getMibObjCount

Returns:
int

getName

public java.lang.String getName()
Returns the value of field 'name'. The field 'name' has the following description: group name

Returns:
String

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

removeMibObj

public boolean removeMibObj(MibObj vMibObj)
Method removeMibObj

Parameters:
vMibObj -
Returns:
boolean

setIfType

public void setIfType(java.lang.String ifType)
Sets the value of field 'ifType'. The field 'ifType' has the following description: Interface type. Indicates the interface types from which the groups MIB objects are to be collected. Supports individual ifType values or comma-separated list of ifType values in addition to "all" and "ignore" key words. For example: "6" indicates that OIDs from this MIB group are to be collected only for ethernet interfaces (ifType = 6) "6,22" indicates that OIDs from this MIB group are to be collected only for ethernet and serial interfaces "all" indicates that the OIDs from this MIB group are to be collected for all interfaces regardless of ifType "ignore" indicates that OIDs from this MIB group are node-level objects. Sample ifType descriptions/values: (Refer to http://www.iana.org/assignments/ianaiftype-mib for a comprehensive list.); ethernetCsmacd 6; iso8825TokenRing 9; fddi 15; sdlc 17; basicISDN 20; primaryISDN 21; propPointToPointSerial 22; ppp 23; atm 37; sonet 39; opticalChannel 195

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

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.

setMibObj

public void setMibObj(int index,
                      MibObj vMibObj)
               throws java.lang.IndexOutOfBoundsException
Method setMibObj

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

setMibObj

public void setMibObj(MibObj[] mibObjArray)
Method setMibObj

Parameters:
mibObjArray -

setMibObj

public void setMibObj(java.util.ArrayList mibObjCollection)
Method setMibObj Sets the value of 'mibObj' by copying the given ArrayList.

Parameters:
mibObjCollection - the Vector to copy.

setMibObjCollection

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

Parameters:
mibObjCollection - the ArrayList to copy.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'. The field 'name' has the following description: group name

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

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.