|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.adventnet.snmp.mibs.ModuleComplianceModule
This class represents the MODULE clause present in the MODULE-COMPLIANCE macro. An ModuleCompliance Module contains the following definition
MODULE <ModuleName>
[MANDATORY-GROUPS { <Objects> }]
[<ComplianceGroup> | <Object>]
where ComplianceGroup contains the following clauses
GROUP { <Objects> }
DESCRIPTION Text
and Object contains the following clauses
OBJECT { <Objects> }
[SYNTAX <SyntaxV2>]
[WRITE-SYNTAX <SyntaxV2>]
[MIN-ACCESS <AccessV2>]
DESCRIPTION <Text>
where
The ModuleComplianceModule instance can be obtained as follows after loading the MIB module. The MIB module should contain the MODULE-COMPLIANCE macro with the MODULE clause.
MibModule mod = mibops.getMibModule("moduleName");
ModuleCompliance modcom = mod.getModuleCompliance("ModuleComplianceName");
After getting the ModuleCompliance object, you can get the
ModuleComplianceModule object using any one of the following methods
Method 1
Vector mcModules = modcom.getMCModules();
ModuleComplianceModule mcm = (ModuleComplianceModule)mcModules.elementAt(0);
Method 2
ModuleComplianceModule mcm = modcom.getMCModule("ModuleComplianceModuleName");
| Method Summary | |
java.lang.String |
getGroupDescr(java.lang.String groupName)
Returns the description for the given group name. |
java.util.Vector |
getGroups()
Returns a Vector of groups defined in this ModuleCompliance Module. |
java.util.Vector |
getMandatoryGroups()
Retuns a Vector of MandatoryGroups defined in this ModuleCompliance Module. |
java.lang.String |
getName()
Returns the name of this ModuleComplianceModule object. |
java.lang.String |
getObjectDescr(java.lang.String objectName)
Returns the description for the given object name. |
java.lang.String |
getObjectMinAccess(java.lang.String objectName)
Returns the MIN-ACCESS value of the OBJECT with the given object name. |
java.util.Vector |
getObjects()
Returns a Vector of objects defined in this ModuleCompliance Module. |
java.lang.String |
getObjectSyntax(java.lang.String objectName)
Returns the SYNTAX value of the OBJECT with the given name. |
java.lang.String |
getObjectWriteSyntax(java.lang.String objectName)
Returns the WRITE-SYNTAX value of the OBJECT with the given object name. |
java.lang.String |
toString()
Returns the name of this ModuleComplianceModule 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()
toStringpublic java.lang.String toString()
toString in class java.lang.ObjecttoStringpublic java.util.Vector getMandatoryGroups()
public java.util.Vector getObjects()
public java.util.Vector getGroups()
public java.lang.String getGroupDescr(java.lang.String groupName)
public java.lang.String getObjectDescr(java.lang.String objectName)
public java.lang.String getObjectSyntax(java.lang.String objectName)
public java.lang.String getObjectWriteSyntax(java.lang.String objectName)
public java.lang.String getObjectMinAccess(java.lang.String objectName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||