All Packages Class Hierarchy This Package Previous Next Index
Class aka.snmp.ObjectId
java.lang.Object
|
+----aka.snmp.Type
|
+----aka.snmp.ObjectId
- public class ObjectId
- extends Type
- implements Cloneable
This is the Object Identifier, it is a subclass of Type.
- See Also:
- Type
-
name
-
-
ObjectId()
- Default constructor
-
ObjectId(ByteBuffer)
- Constucts a ObjectId from a sequence of bytes
-
ObjectId(String)
- Constructs a ObjectId from a string
-
addInstance(int)
- Add a integer to the ID, representing which instance of the
SNMP object you are interested in
-
BERSerialize()
- SNMP Protocol Conversion.
-
clone()
- creates a new copy of the object
-
equals(Object)
- comparison
-
equals(ObjectId)
- comparison
-
hashCode()
- hash code to store object
-
isUnder(ObjectId)
- Is the current ID of an object under the SNMP Object ID topId.
-
isValid()
- Is this a valid Object Identifier?
-
main(String[])
- Test harness
-
read(String)
- Reads a value from the string value
-
removeInstance()
- Remove the last value in the ID as an Intance value, and
return it as an int.
-
toString()
- The ID in dot notation
-
typeName()
- Returns the type of the object "ObjectID", when it is
referenced as a Type object.
name
public static String name
ObjectId
public ObjectId(String idStr)
- Constructs a ObjectId from a string
ObjectId
public ObjectId(ByteBuffer buf) throws SnmpPDUException
- Constucts a ObjectId from a sequence of bytes
ObjectId
public ObjectId()
- Default constructor
equals
public boolean equals(ObjectId id)
- comparison
equals
public boolean equals(Object obj)
- comparison
- Overrides:
- equals in class Object
clone
protected Object clone()
- creates a new copy of the object
- Overrides:
- clone in class Object
hashCode
public int hashCode()
- hash code to store object
- Overrides:
- hashCode in class Object
isValid
public boolean isValid()
- Is this a valid Object Identifier?
isUnder
public boolean isUnder(ObjectId topId)
- Is the current ID of an object under the SNMP Object ID topId.
In otherwords, is the current ID have the same begining as topId.
toString
public String toString()
- The ID in dot notation
- Overrides:
- toString in class Object
addInstance
public void addInstance(int i)
- Add a integer to the ID, representing which instance of the
SNMP object you are interested in
removeInstance
public int removeInstance()
- Remove the last value in the ID as an Intance value, and
return it as an int.
typeName
public String typeName()
- Returns the type of the object "ObjectID", when it is
referenced as a Type object.
- Overrides:
- typeName in class Type
read
public boolean read(String value)
- Reads a value from the string value
- Overrides:
- read in class Type
BERSerialize
public ByteBuffer BERSerialize()
- SNMP Protocol Conversion.
Converts this object into a sequence of characters
according to the rules of the SNMP protcol.
- Overrides:
- BERSerialize in class Type
main
public static void main(String args[])
- Test harness
All Packages Class Hierarchy This Package Previous Next Index