org.opennms.netmgt.config.datacollection
Class Group

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

public class Group
extends Object
implements Serializable

a MIB object group

See Also:
Serialized Form

Constructor Summary
Group()
           
Group(String name)
           
 
Method Summary
 void addIncludeGroup(int index, String includeGroup)
           
 void addIncludeGroup(String includeGroup)
           
 void addMibObj(int index, MibObj mibObj)
           
 void addMibObj(MibObj mibObj)
           
 Enumeration<String> enumerateIncludeGroup()
          Method enumerateIncludeGroup.
 Enumeration<MibObj> enumerateMibObj()
          Method enumerateMibObj.
 boolean equals(Object obj)
          Overrides the java.lang.Object.equals method.
 String getIfType()
          Returns the value of field 'ifType'.
 String[] getIncludeGroup()
          Method getIncludeGroup.Returns the contents of the collection in an Array.
 String getIncludeGroup(int index)
          Method getIncludeGroup.
 List<String> getIncludeGroupCollection()
          Method getIncludeGroupCollection.Returns a reference to '_includeGroupList'.
 int getIncludeGroupCount()
          Method getIncludeGroupCount.
 MibObj[] getMibObj()
          Method getMibObj.Returns the contents of the collection in an Array.
 MibObj getMibObj(int index)
          Method getMibObj.
 List<MibObj> getMibObjCollection()
          Method getMibObjCollection.Returns a reference to '_mibObjList'.
 int getMibObjCount()
          Method getMibObjCount.
 String getName()
          Returns the value of field 'name'.
 int hashCode()
          Overrides the java.lang.Object.hashCode method.
 boolean isValid()
          Deprecated. 
 Iterator<String> iterateIncludeGroup()
          Method iterateIncludeGroup.
 Iterator<MibObj> iterateMibObj()
          Method iterateMibObj.
 void marshal(ContentHandler handler)
          Deprecated. 
 void marshal(Writer out)
          Deprecated. 
 void removeAllIncludeGroup()
           
 void removeAllMibObj()
           
 boolean removeIncludeGroup(String includeGroup)
          Method removeIncludeGroup.
 String removeIncludeGroupAt(int index)
          Method removeIncludeGroupAt.
 boolean removeMibObj(MibObj mibObj)
          Method removeMibObj.
 MibObj removeMibObjAt(int index)
          Method removeMibObjAt.
 void setIfType(String ifType)
          Sets the value of field 'ifType'.
 void setIncludeGroup(int index, String includeGroup)
           
 void setIncludeGroup(List<String> includeGroups)
          Sets the value of '_includeGroupList' by copying the given Vector.
 void setIncludeGroup(String[] includeGroups)
           
 void setIncludeGroupCollection(List<String> includeGroups)
          Deprecated.  
 void setMibObj(int index, MibObj mibObj)
           
 void setMibObj(List<MibObj> mibObjs)
          Sets the value of '_mibObjList' by copying the given Vector.
 void setMibObj(MibObj[] mibObjs)
           
 void setMibObjCollection(List<MibObj> mibObjs)
          Deprecated.  
 void setName(String name)
          Sets the value of field 'name'.
static Group unmarshal(Reader reader)
          Deprecated. 
 void validate()
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Group

public Group()

Group

public Group(String name)
Method Detail

addIncludeGroup

public void addIncludeGroup(String includeGroup)
                     throws IndexOutOfBoundsException
Parameters:
includeGroup -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addIncludeGroup

public void addIncludeGroup(int index,
                            String includeGroup)
                     throws IndexOutOfBoundsException
Parameters:
index -
includeGroup -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addMibObj

public void addMibObj(MibObj mibObj)
               throws IndexOutOfBoundsException
Parameters:
mibObj -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addMibObj

public void addMibObj(int index,
                      MibObj mibObj)
               throws IndexOutOfBoundsException
Parameters:
index -
mibObj -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateIncludeGroup

public Enumeration<String> enumerateIncludeGroup()
Method enumerateIncludeGroup.

Returns:
an Enumeration over all possible elements of this collection

enumerateMibObj

public Enumeration<MibObj> enumerateMibObj()
Method enumerateMibObj.

Returns:
an Enumeration over all possible elements of this collection

equals

public boolean equals(Object obj)
Overrides the java.lang.Object.equals method.

Overrides:
equals in class Object
Parameters:
obj -
Returns:
true if the objects are equal.

getIfType

public 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:
the value of field 'IfType'.

getIncludeGroup

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

Parameters:
index -
Returns:
the value of the String at the given index
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getIncludeGroup

public String[] getIncludeGroup()
Method getIncludeGroup.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getIncludeGroupCollection

public List<String> getIncludeGroupCollection()
Method getIncludeGroupCollection.Returns a reference to '_includeGroupList'. No type checking is performed on any modifications to the Vector.

Returns:
a reference to the Vector backing this class

getIncludeGroupCount

public int getIncludeGroupCount()
Method getIncludeGroupCount.

Returns:
the size of this collection

getMibObj

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

Parameters:
index -
Returns:
the value of the MibObj at the given index
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getMibObj

public MibObj[] getMibObj()
Method getMibObj.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getMibObjCollection

public List<MibObj> getMibObjCollection()
Method getMibObjCollection.Returns a reference to '_mibObjList'. No type checking is performed on any modifications to the Vector.

Returns:
a reference to the Vector backing this class

getMibObjCount

public int getMibObjCount()
Method getMibObjCount.

Returns:
the size of this collection

getName

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

Returns:
the value of field 'Name'.

hashCode

public int hashCode()
Overrides the java.lang.Object.hashCode method.

The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3

Overrides:
hashCode in class Object
Returns:
a hash code value for the object.

isValid

@Deprecated
public boolean isValid()
Deprecated. 

Method isValid.

Returns:
true if this object is valid according to the schema

iterateIncludeGroup

public Iterator<String> iterateIncludeGroup()
Method iterateIncludeGroup.

Returns:
an Iterator over all possible elements in this collection

iterateMibObj

public Iterator<MibObj> iterateMibObj()
Method iterateMibObj.

Returns:
an Iterator over all possible elements in this collection

marshal

@Deprecated
public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Deprecated. 

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

@Deprecated
public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Deprecated. 

Parameters:
handler -
Throws:
IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

removeAllIncludeGroup

public void removeAllIncludeGroup()

removeAllMibObj

public void removeAllMibObj()

removeIncludeGroup

public boolean removeIncludeGroup(String includeGroup)
Method removeIncludeGroup.

Parameters:
includeGroup -
Returns:
true if the object was removed from the collection.

removeIncludeGroupAt

public String removeIncludeGroupAt(int index)
Method removeIncludeGroupAt.

Parameters:
index -
Returns:
the element removed from the collection

removeMibObj

public boolean removeMibObj(MibObj mibObj)
Method removeMibObj.

Parameters:
mibObj -
Returns:
true if the object was removed from the collection.

removeMibObjAt

public MibObj removeMibObjAt(int index)
Method removeMibObjAt.

Parameters:
index -
Returns:
the element removed from the collection

setIfType

public void setIfType(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,
                            String includeGroup)
                     throws IndexOutOfBoundsException
Parameters:
index -
includeGroup -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setIncludeGroup

public void setIncludeGroup(String[] includeGroups)
Parameters:
includeGroups -

setIncludeGroup

public void setIncludeGroup(List<String> includeGroups)
Sets the value of '_includeGroupList' by copying the given Vector. All elements will be checked for type safety.

Parameters:
includeGroups - the Vector to copy.

setIncludeGroupCollection

public void setIncludeGroupCollection(List<String> includeGroups)
Deprecated. 

Sets the value of '_includeGroupList' by setting it to the given Vector. No type checking is performed.

Parameters:
includeGroups - the Vector to set.

setMibObj

public void setMibObj(int index,
                      MibObj mibObj)
               throws IndexOutOfBoundsException
Parameters:
index -
mibObj -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setMibObj

public void setMibObj(MibObj[] mibObjs)
Parameters:
mibObjs -

setMibObj

public void setMibObj(List<MibObj> mibObjs)
Sets the value of '_mibObjList' by copying the given Vector. All elements will be checked for type safety.

Parameters:
mibObjs - the Vector to copy.

setMibObjCollection

public void setMibObjCollection(List<MibObj> mibObjs)
Deprecated. 

Sets the value of '_mibObjList' by setting it to the given Vector. No type checking is performed.

Parameters:
mibObjs - the Vector to set.

setName

public void setName(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

@Deprecated
public static Group unmarshal(Reader reader)
                       throws org.exolab.castor.xml.MarshalException,
                              org.exolab.castor.xml.ValidationException
Deprecated. 

Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled Group
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

@Deprecated
public void validate()
              throws org.exolab.castor.xml.ValidationException
Deprecated. 

Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright © 2011. All Rights Reserved.