Package org.opennms.netmgt.snmp
Class SnmpObjId
- java.lang.Object
- 
- org.opennms.netmgt.snmp.SnmpObjId
 
- 
- All Implemented Interfaces:
- Comparable<SnmpObjId>
 - Direct Known Subclasses:
- SnmpInstId
 
 public class SnmpObjId extends Object implements Comparable<SnmpObjId> 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedSnmpObjId()protectedSnmpObjId(int[] ids)These constructors are private.SnmpObjId(int[] ids, boolean clone)These constructors are private.protectedSnmpObjId(String oid)These constructors are private.protectedSnmpObjId(SnmpObjId oid)These constructors are private.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaddPrefixDotInToString()SnmpObjIdappend(int[] instIds)SnmpObjIdappend(String inst)SnmpObjIdappend(SnmpObjId inst)intcompareTo(SnmpObjId o)static int[]convertStringToInts(String oid)SnmpObjIddecrement()booleanequals(Object obj)static SnmpObjIdget(int[] ids)static SnmpObjIdget(String oid)static SnmpObjIdget(String objId, String instance)static SnmpObjIdget(SnmpObjId oid)static SnmpObjIdget(SnmpObjId objId, String instance)static SnmpObjIdget(SnmpObjId objId, SnmpObjId instance)int[]getIds()SnmpInstIdgetInstance(SnmpObjId base)intgetLastSubId()SnmpObjIdgetPrefix(int length)intgetSubIdAt(int index)inthashCode()booleanisPrefixOf(SnmpObjId other)booleanisSuccessorOf(SnmpObjId base)If requesting a GETNEXT on the given base OID, would the current OID be expected in a response? Returnstrueif this OID is a successor (greater than) the given OID, orfalseotherwise.intlength()StringtoString()
 
- 
- 
- 
Constructor Detail- 
SnmpObjIdprotected SnmpObjId() 
 - 
SnmpObjIdpublic SnmpObjId(int[] ids, boolean clone)These constructors are private. The get method should be called to create a new oid
 - 
SnmpObjIdprotected SnmpObjId(int[] ids) These constructors are private. The get method should be called to create a new oid
 - 
SnmpObjIdprotected SnmpObjId(String oid) These constructors are private. The get method should be called to create a new oid
 - 
SnmpObjIdprotected SnmpObjId(SnmpObjId oid) These constructors are private. The get method should be called to create a new oid
 
- 
 - 
Method Detail- 
getIdspublic int[] getIds() 
 - 
convertStringToIntspublic static int[] convertStringToInts(String oid) 
 - 
addPrefixDotInToStringprotected boolean addPrefixDotInToString() 
 - 
compareTopublic int compareTo(SnmpObjId o) - Specified by:
- compareToin interface- Comparable<SnmpObjId>
 
 - 
appendpublic SnmpObjId append(int[] instIds) 
 - 
getpublic static SnmpObjId get(int[] ids) 
 - 
isPrefixOfpublic boolean isPrefixOf(SnmpObjId other) 
 - 
getInstancepublic SnmpInstId getInstance(SnmpObjId base) 
 - 
lengthpublic int length() 
 - 
getPrefixpublic SnmpObjId getPrefix(int length) 
 - 
getSubIdAtpublic int getSubIdAt(int index) 
 - 
getLastSubIdpublic int getLastSubId() 
 - 
decrementpublic SnmpObjId decrement() 
 - 
isSuccessorOfpublic boolean isSuccessorOf(SnmpObjId base) If requesting a GETNEXT on the given base OID, would the current OID be expected in a response? Returnstrueif this OID is a successor (greater than) the given OID, orfalseotherwise.- Parameters:
- base- base oid against which to compare
- Returns:
- true if this OID is a successor of the "base" oid, false otherwise
 
 
- 
 
-