com.sun.jaw.snmp.common
Class SnmpVarBind

java.lang.Object
  |
  +--com.sun.jaw.snmp.common.SnmpVarBind
Direct Known Subclasses:
SnmpVar

public class SnmpVarBind
extends java.lang.Object
implements java.io.Serializable, SnmpDataTypeEnums

The SnmpVarBind class represents a variable contained in a VarBindList.

See Also:
Serialized Form

Field Summary
static SnmpNull endOfMibView
          Error code value as defined in RFC 1448 for: endOfMibView.
static SnmpNull noSuchInstance
          Error code value as defined in RFC 1448 for: noSuchInstance.
static SnmpNull noSuchObject
          Error code value as defined in RFC 1448 for: noSuchObject.
 SnmpOid oid
          The oid of the SnmpVarBind.
 SnmpValue value
          The value of the SnmpVarBind.
 
Constructor Summary
SnmpVarBind()
          Default constructor.
SnmpVarBind(SnmpOid o, SnmpValue v)
          Constructs a new SnmpVarBind object from the specified SnmpOid and SnmpValue.
 
Method Summary
 void appendInOid(SnmpOid oid)
          Appends the specified SnmpOid to the end of the oid of this SnmpVarBind.
 void insertInOid(int val)
          Inserts a subid at the beginning of the oid of this SnmpVarBind.
 java.lang.String toString()
          Returns the string representation for this SnmpVarBind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

oid

public SnmpOid oid
The oid of the SnmpVarBind.

value

public SnmpValue value
The value of the SnmpVarBind.

noSuchObject

public static final SnmpNull noSuchObject
Error code value as defined in RFC 1448 for: noSuchObject.

noSuchInstance

public static final SnmpNull noSuchInstance
Error code value as defined in RFC 1448 for: noSuchInstance.

endOfMibView

public static final SnmpNull endOfMibView
Error code value as defined in RFC 1448 for: endOfMibView.
Constructor Detail

SnmpVarBind

public SnmpVarBind()
Default constructor.

SnmpVarBind

public SnmpVarBind(SnmpOid o,
                   SnmpValue v)
Constructs a new SnmpVarBind object from the specified SnmpOid and SnmpValue.
Parameters:
o - The oid part of the SnmpVarBind.
v - The value part of the SnmpVarBind.
Method Detail

toString

public java.lang.String toString()
Returns the string representation for this SnmpVarBind.
Returns:
The string representation.
Overrides:
toString in class java.lang.Object

insertInOid

public void insertInOid(int val)
Inserts a subid at the beginning of the oid of this SnmpVarBind.
Parameters:
val - The subid to insert.

appendInOid

public void appendInOid(SnmpOid oid)
Appends the specified SnmpOid to the end of the oid of this SnmpVarBind.
Parameters:
oid - The oid to append.