|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.snmputils.VariableBinding
com.tivoli.twg.snmputils.OidVbl
Oid variable binding.
Field Summary |
---|
Fields inherited from class com.tivoli.twg.snmputils.VariableBinding |
---|
oid |
Constructor Summary | |
---|---|
OidVbl(java.lang.String oid,
java.lang.String value)
Constructor using object type for value |
Method Summary | |
---|---|
void |
addToPdu(SNMPPDU pdu)
Adds the variable binding to the specified PDU |
byte[] |
getBytes()
Returns a byte array of the string I'm holding. |
static int |
getMIBType()
Describes the type of MIB I represent. |
java.lang.String |
getString()
Returns the String I'm holding. |
static int |
getType()
Describes the type of variable binding I represent. |
java.lang.String |
getValue()
Returns the value for this variable binding as a primitive |
java.lang.Object |
getValueAsObject()
Returns the value for this variable binding as an Object |
int |
size()
Returns the size of the variable binding |
static java.lang.String |
toAsciiString(java.lang.String oidString)
Returns an ASCII string equivalent of the dotted decimal OID. |
static java.lang.String |
toAsciiString(java.lang.String oidString,
int offset)
Returns an ASCII string equivalent of the dotted decimal OID. |
Methods inherited from class com.tivoli.twg.snmputils.VariableBinding |
---|
getOid, setOid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OidVbl(java.lang.String oid, java.lang.String value)
oid
- string for the OID of this variable bindingMethod Detail |
public static int getType()
SNMPPDU
public static int getMIBType()
TWGMIBItem2
public java.lang.String getString()
public byte[] getBytes()
public java.lang.String getValue()
public java.lang.Object getValueAsObject()
getValueAsObject
in class VariableBinding
public void addToPdu(SNMPPDU pdu)
addToPdu
in class VariableBinding
pdu
- SNMPPDU to add variable binding topublic int size()
size
in class VariableBinding
VariableBinding
public static java.lang.String toAsciiString(java.lang.String oidString)
oidString
- the OID to convert into
public static java.lang.String toAsciiString(java.lang.String oidString, int offset)
oidString
- the OID to convert intooffset
- offset to start from
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |