|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.mibs.ObjectGroup
This class represents a OBJECT-GROUP macro in a module.
The OBJECT-GROUP macro will look as follows
<lowerCaseName> OBJECT-GROUP OBJECTS { <Objects> } STATUS <StatusV2> DESCRIPTION <Text> [REFERENCE <Text>]
where,
The OBJECT-GROUP object can be obtained using any one of the following methods after loading the MIB module that contains the OBJECT-GROUP macro.
MibOperations mibOps = new MibOperations(); mibOps.loadMibModule("mibFile");
Method 1 MibModule module = mibOps.getMibModule("moduleName"); Enumeration en = module.getDefinedObjectGroups(); while(en.hasMoreElements()) { ObjectGroup og = (ObjectGroup)en.nextElement(); }Method 2 MibModule module = mibOps.getMibModule("moduleName"); ObjectGroup og = module.getObjectGroup("objectGroupName");
Method Summary | |
java.lang.String |
getDescription()
Gets the description for this ObjectGroup object. |
java.lang.String |
getName()
Gets the name of this ObjectGroup object. |
java.lang.String |
getNumberedOIDString()
Gets the numbered oid String of this ObjectGroup. |
java.util.Vector |
getObjects()
Gets the objects defined in this OBJECT-GROUP macro. |
java.lang.String |
getOIDString()
Gets the named oid String of this ObjectGroup. |
java.lang.String |
getReference()
Gets the REFERENCE string for this OBJECT-GROUP macro. |
java.lang.String |
getStatus()
Gets the status value for this ObjectGroup object. |
java.lang.String |
toString()
Gives the name of this ObjectGroup object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getName()
toString()
public java.util.Vector getObjects()
This method returns the value of OBJECTS clause as a Vector.
public java.lang.String getStatus()
public java.lang.String getDescription()
public java.lang.String getReference()
public java.lang.String toString()
toString
in class java.lang.Object
getName()
public java.lang.String getOIDString()
public java.lang.String getNumberedOIDString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |