All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.agent.SnmpIndex

java.lang.Object
   |
   +----com.sun.jaw.snmp.agent.SnmpIndex

public class SnmpIndex
extends Object
implements Serializable
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 Index

 o SnmpIndex(SnmpOid)
 o SnmpIndex(SnmpOid[])
Initialize a SnmpIndex using a vector of Object identifier.

Method Index

 o compareTo(SnmpIndex)
Compares two indexes.
 o equals(SnmpIndex)
Compares two indexes for equality.
 o getComponents()
Returns the index as a vector of Object identifiers.
 o getNbComponents()
Get the number of object identifiers the index is made of.
 o toString()
String representation of the index.

Constructors

 o SnmpIndex
 public SnmpIndex(SnmpOid oidList[])
Initialize a SnmpIndex using a vector of Object identifier. Following the RFC recommendations, every syntax that is used as a table index should have an Object identifier representations. 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.

Parameters:
oidList - list of Object identifiers.
 o SnmpIndex
 public SnmpIndex(SnmpOid oid)

Methods

 o getNbComponents
 public int getNbComponents()
Get the number of object identifiers the index is made of.

 o getComponents
 public Vector getComponents()
Returns the index as a vector of Object identifiers.

 o equals
 public boolean equals(SnmpIndex index)
Compares two indexes for equality.

 o compareTo
 public int compareTo(SnmpIndex index)
Compares two indexes.

 o toString
 public String toString()
String representation of the index. The different elements are separated by "//".

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index