|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.snmp.agent.SnmpIndex
public class SnmpIndex
Represents a SNMP index.
An SnmpIndex
is represented as a Vector
of SnmpOid
.
This class is used internally and by the classes generated by mibgen
.
You should not need to use this class directly.
Constructor Summary | |
---|---|
SnmpIndex(SnmpOid oid)
Initializes an SnmpIndex using the specified Object Identifier. |
|
SnmpIndex(SnmpOid[] oidList)
Initializes an SnmpIndex using a vector of object identifiers. |
Method Summary | |
---|---|
int |
compareTo(SnmpIndex index)
Compares two indexes. |
boolean |
equals(SnmpIndex index)
Compares two indexes for equality. |
Vector |
getComponents()
Gets the index as a vector of Object Identifiers. |
int |
getNbComponents()
Gets the number of Object Identifiers the index is made of. |
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)
SnmpIndex
using a vector of object identifiers.
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)
SnmpIndex
using the specified Object Identifier.
oid
- The Object Identifier.Method Detail |
---|
public int getNbComponents()
public Vector getComponents()
public boolean equals(SnmpIndex index)
index
- The index to compare this
with.
true
if the two indexes are equal, false
otherwise.public int compareTo(SnmpIndex index)
index
- The index to compare this
with.
public String toString()
String
representation of the index.
The different elements are separated by "//".
toString
in class Object
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |