|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.jaw.snmp.agent.SnmpIndex
The SnmpIndex class represents a SNMP index.
A SnmpIndex is represented as a Vector of oid.
You should not need to use this class directly.
| Constructor Summary | |
SnmpIndex(SnmpOid oid)
Initializes a SnmpIndex using the specified Object identifier. |
|
SnmpIndex(SnmpOid[] oidList)
Initializes a SnmpIndex using a vector of Object identifier. |
|
| Method Summary | |
int |
compareTo(SnmpIndex index)
Compares two indexes. |
boolean |
equals(SnmpIndex index)
Compares two indexes for equality. |
java.util.Vector |
getComponents()
Gets the index as a vector of Object identifiers. |
int |
getNbComponents()
Gets the number of object identifiers the index is made of. |
java.lang.String |
toString()
Returns a String representation of the index. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public SnmpIndex(SnmpOid[] oidList)
Following the RFC recommendations, every syntax that is used as a
table index should have an Object identifier representation. There are
some guidelines on how to map the different syntaxes into an Object identifier.
In the different SnmpValue classes provided, there is a toOid method to get
the Object identifier of the value.
oidList - The list of Object identifiers.public SnmpIndex(SnmpOid oid)
oid - The Object identifier.| Method Detail |
public int getNbComponents()
public java.util.Vector getComponents()
public boolean equals(SnmpIndex index)
index - The index to compare this with.public int compareTo(SnmpIndex index)
index - The index to compare this with.public java.lang.String toString()
String representation of the index.
The different elements are separated by "//".
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||