|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.snmpadaptor4j.object.SnmpOid
public final class SnmpOid
Object representing an object identifier in a SNMP Management Information Base (MIB).
Field Summary | |
---|---|
static SnmpOid |
SYSCONTACT_OID
OID: system.sysContact.0 |
static SnmpOid |
SYSDESCR_OID
OID: system.sysDescr.0 |
static SnmpOid |
SYSLOCATION_OID
OID: system.sysLocation.0 |
static SnmpOid |
SYSNAME_OID
OID: system.sysName.0 |
static SnmpOid |
SYSUPTIME_OID
OID: system.sysUpTime.0 |
Method Summary | |
---|---|
int |
compareTo(SnmpOid obj)
|
boolean |
equals(Object obj)
|
boolean |
equalsWithoutIndex(SnmpOid other)
Returns TRUE if the OID without its index is equals to another OID. |
int |
getIndex()
Returns the index part of the object identifier. |
int[] |
getOid()
Returns the object identifier as numeric sequence. |
int |
hashCode()
|
boolean |
isRootOf(SnmpOid other)
Returns TRUE if the OID is the root of another OID passed as parameter. |
static SnmpOid |
newInstance(int[] oid)
Creates and returns a new instance of SnmpOid by its numeric sequence. |
static SnmpOid |
newInstance(int[] oid,
int index)
Creates and returns a new instance of SnmpOid by its numeric sequence. |
static SnmpOid |
newInstance(SnmpOid oid,
int nodeNum,
int index)
Creates and returns a new instance of SnmpOid by an another SnmpOid . |
static SnmpOid |
newInstance(String oid)
Creates and returns a new instance of SnmpOid by its string value. |
static SnmpOid |
newInstance(String oid,
int nodeNum,
int index)
Creates and returns a new instance of SnmpOid by its string value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static SnmpOid SYSNAME_OID
public static SnmpOid SYSDESCR_OID
public static SnmpOid SYSLOCATION_OID
public static SnmpOid SYSCONTACT_OID
public static SnmpOid SYSUPTIME_OID
Method Detail |
---|
public static SnmpOid newInstance(String oid, int nodeNum, int index)
SnmpOid
by its string value.
oid
- Object identifier as string.nodeNum
- Node number to insert at the last position of object identifier.index
- Index to insert at the last position of object identifier.
SnmpOid
.public static SnmpOid newInstance(SnmpOid oid, int nodeNum, int index)
SnmpOid
by an another SnmpOid
.
oid
- Object identifier as SnmpOid
.nodeNum
- Node number to insert at the last position of object identifier.index
- Index to insert at the last position of object identifier.
SnmpOid
.public static SnmpOid newInstance(String oid)
SnmpOid
by its string value.
oid
- Object identifier as string.
SnmpOid
.public static SnmpOid newInstance(int[] oid, int index)
SnmpOid
by its numeric sequence.
oid
- Object identifier as numeric sequence.index
- Index to insert at the last position of object identifier.
SnmpOid
.public static SnmpOid newInstance(int[] oid)
SnmpOid
by its numeric sequence.
oid
- Object identifier as numeric sequence.
SnmpOid
.public int[] getOid()
public int getIndex()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public boolean equalsWithoutIndex(SnmpOid other)
TRUE
if the OID without its index is equals to another OID.
other
- Another OID.
TRUE
if the OID without its index is equals to another OID.public boolean isRootOf(SnmpOid other)
TRUE
if the OID is the root of another OID passed as parameter.
other
- Another OID.
TRUE
if the OID is the root of another OID passed as parameter.public int compareTo(SnmpOid obj)
compareTo
in interface Comparable<SnmpOid>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |