|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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();
}
| Field Summary | |
(package private) java.lang.String |
descr
|
(package private) java.util.Vector |
mcModules
|
(package private) java.lang.String |
mcName
|
(package private) java.lang.String |
numOid
|
(package private) java.lang.String |
OIDString
|
(package private) java.lang.String |
ref
|
(package private) java.lang.String |
status
|
| Constructor Summary | |
(package private) |
ModuleCompliance()
|
| 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 |
|
| Field Detail |
java.lang.String mcName
java.lang.String status
java.lang.String descr
java.lang.String ref
java.lang.String OIDString
java.lang.String numOid
java.util.Vector mcModules
| Constructor Detail |
ModuleCompliance()
| Method Detail |
public java.lang.String getName()
toString()public java.lang.String toString()
toString()public java.lang.String getStatus()
public java.util.Vector getMCModules()
public ModuleComplianceModule getMCModule(java.lang.String module)
module - name of the MODULEpublic 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||