|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.adventnet.snmp.mibs.ModuleCompliance
This class represents a MIB MODULE-COMPLIANCE macro in a module.
The MODULE-COMPLIANCE macro definition is as follows lowerCaseName MODULE-COMPLIANCE STATUS <StatusV2> DESCRIPTION <Text> [REFERENCE <Text>] [<Module>]* ::= <oidValue>Where
The ModuleCompliance instance can be obtained using any one of the following methods, after loading the MIB containing the MODULE-COMPLIANCE macro.
MibOperations mibOps = new MibOperations();
try
{
mibOps.loadMibModules("mibFile");
}
catch(Exception ex)
{
System.out.println(ex);
}
Method 1
MibModule mod = mibops.getMibModule("moduleName");
ModuleCompliance modcom = mod.getModuleCompliance("ModuleComplianceName");
Method 2
MibModule mod = mibops.getMibModule("moduleName");
Enumeration en = mod.getDefinedModuleCompliances();
while(en.hasMoreElements())
{
ModuleCompliance modcom = (ModuleCompliance)en.nextElement();
}
| Method Summary | |
java.lang.String |
getDescription()
Returns the value of the DESCRIPTION clause for this ModuleCompliance. |
ModuleComplianceModule |
getMCModule(java.lang.String module)
Returns the ModuleComplianceModule object for the given name. |
java.util.Vector |
getMCModules()
Returns the Vector of ModuleComplianceModule objects. |
java.lang.String |
getName()
Returns the name of this ModuleCompliance object. |
java.lang.String |
getNumberedOIDString()
Returns the numbered oid String of this ModuleCompliance node. |
java.lang.String |
getOIDString()
Returns the named oid String of this ModuleCompliance node. |
java.lang.String |
getReference()
Returns the value of the REFERENCE clause for this ModuleCompliance. |
java.lang.String |
getStatus()
Returns the STATUS value of this ModuleCompliance. |
java.lang.String |
toString()
Returns the name of this ModuleCompliance 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.lang.String toString()
toString in class java.lang.ObjecttoString()public java.lang.String getStatus()
public java.util.Vector getMCModules()
public ModuleComplianceModule getMCModule(java.lang.String module)
module - name of the MODULE
public java.lang.String getOIDString()
public java.lang.String getNumberedOIDString()
public java.lang.String getDescription()
public java.lang.String getReference()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||