public class varbind
extends java.lang.Object
This class represents the variable bindings to a PDU. A variable consists of a name (an AsnObjectId) and a value (an AsnObject)
The varbind is usually passed to the Observers of the PDU when notifying them.
Pdu.addOid(varbind)
,
Pdu.addOid(String, AsnObject)
Constructor and Description |
---|
varbind(AsnObjectId Oid)
Constructor.
|
varbind(AsnObjectId Oid,
AsnObject val)
Constructor.
|
varbind(java.lang.String Oid)
Constructor.
|
varbind(java.lang.String Oid,
AsnObject val)
Constructor.
|
varbind(varbind var)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AsnObjectId |
getOid()
Returns the oid, this is the name of the varbind.
|
AsnObject |
getValue()
Returns the value of the varbind.
|
java.lang.String |
toString()
Returns the string representation of the varbind.
|
public varbind(varbind var)
var
- The varbindpublic varbind(java.lang.String Oid)
Oid
- The oidAsnNull
public varbind(AsnObjectId Oid)
Oid
- The oidAsnNull
public varbind(java.lang.String Oid, AsnObject val)
Oid
- The oidval
- The value for the varbindpublic varbind(AsnObjectId Oid, AsnObject val)
Oid
- The oidval
- The value for the varbindpublic AsnObjectId getOid()
public AsnObject getValue()
public java.lang.String toString()
toString
in class java.lang.Object