|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.snmp.mibs.ACVariation
This class represents the VARIATIONS within the module of AGENT-CAPABILITIES which contains the informations like
The NotificationVariation is defined as follows
VARIATION <notificationName> [ACCESS <AccessV2>] DESCRIPTION <Text>where
The ObjectVariation is defined as follows,
VARIATION <ObjectName>
[SYNTAX <SyntaxV2>]
[WRITE SYNTAX <SyntaxV2]
[ACCESS <AccessV2]
[CREATION-REQUIRES { <Objects> }]
[DEFVAL { <Defval> }]
DESCRIPTION <Text>
where
The ACVariation instance can be obtained as follows after loading the MIB. The MIB should contain the AGENT-CAPABILITIES macro with the variations.
MibModule mod = mibops.getMibModule("moduleName");
AgentCapabilities ac = mod.getAgentCapabilities("AgentCapabilitiesName");
Vector acVect = ac.getACModules();
AgentCapabilitiesModule acm = (AgentCapabilitiesModule)acVect.elementAt(0);
Vector varVect = acm.getACVariations();
ACVariation acv = (ACVariation)varVect.elementAt(0);
| Field Summary | |
(package private) int |
access
|
(package private) java.util.Vector |
creationObjects
|
(package private) java.lang.String |
defVal
|
(package private) java.lang.String |
description
|
(package private) java.lang.String |
name
|
(package private) LeafSyntax |
syntax
|
(package private) LeafSyntax |
writeSyntax
|
| Constructor Summary | |
(package private) |
ACVariation()
|
| Method Summary | |
int |
getAccess()
Gets the implemented ACCESS value for this Variation. |
java.util.Vector |
getCreationObjects()
Returns the value of CREATION-REQUIRES field for this Variation. |
java.lang.String |
getDefVal()
Returns the default value for this Variation. |
java.lang.String |
getDescription()
Gets the DESCRIPTION string for this Variation. |
java.lang.String |
getName()
Gets the name of the variation. |
LeafSyntax |
getSyntax()
Returns the SYNTAX value of this Variation. |
LeafSyntax |
getWriteSyntax()
Returns the WRITE-SYNTAX value of this Variation. |
(package private) void |
readElements(ACVariation synoid,
MibNode node,
MibModule module,
AgentCapabilitiesModule acm)
|
(package private) void |
readElements(java.io.DataInputStream inp,
MibNode node,
MibModule module,
AgentCapabilitiesModule acm)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.lang.String name
java.lang.String description
int access
java.util.Vector creationObjects
LeafSyntax syntax
LeafSyntax writeSyntax
java.lang.String defVal
| Constructor Detail |
ACVariation()
| Method Detail |
public java.lang.String getName()
public LeafSyntax getSyntax()
public LeafSyntax getWriteSyntax()
public int getAccess()
public java.util.Vector getCreationObjects()
public java.lang.String getDefVal()
public java.lang.String getDescription()
void readElements(java.io.DataInputStream inp,
MibNode node,
MibModule module,
AgentCapabilitiesModule acm)
throws java.io.IOException
void readElements(ACVariation synoid,
MibNode node,
MibModule module,
AgentCapabilitiesModule acm)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||