|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.netsnmp.ASN.ASNValue | +--org.netsnmp.ASN.NO_SUCH_INSTANCE
Class used to substitute for an object when the object is not found in an agent. NOTE: Whether or not an agent will actually return this in a pdu depends on the agent implementation. Agents may return a NULL object instead.
Field Summary | |
static NO_SUCH_INSTANCE |
NO_SUCH_INSTANCE
|
static ASN_TYPE |
type
|
Method Summary | |
int |
asn_type()
|
boolean |
toBoolean()
Converts the value to a boolean. |
int |
toInt()
Converts the value to a java int. |
long |
toInt64()
Converts the value to java long. |
Object |
toJavaObject()
Converts the value to a Java Object |
int[] |
toOBJECTID()
Converts the value to an OBJECTOID |
byte[] |
toOctetString()
Converts the value to an integer. |
ASN_TYPE |
type()
|
Methods inherited from class org.netsnmp.ASN.ASNValue |
compareTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final NO_SUCH_INSTANCE NO_SUCH_INSTANCE
public static final ASN_TYPE type
Method Detail |
public int asn_type()
asn_type
in class ASNValue
public ASN_TYPE type()
type
in class ASNValue
public boolean toBoolean() throws NetSNMPNoSuchInstance
toBoolean
in class ASNValue
NetSNMPNoSuchInstance
- if this value is not a BOOLEANpublic int toInt() throws NetSNMPNoSuchInstance
toInt
in class ASNValue
NetSNMPNoSuchInstance
- if this value is not some integer typepublic long toInt64() throws NetSNMPNoSuchInstance
toInt64
in class ASNValue
NetSNMPNoSuchInstance
- if this value is not some long typepublic byte[] toOctetString() throws NetSNMPNoSuchInstance
toOctetString
in class ASNValue
NetSNMPNoSuchInstance
- if this value is not an OCTECT_STRpublic int[] toOBJECTID() throws NetSNMPNoSuchInstance
toOBJECTID
in class ASNValue
NetSNMPNoSuchInstance
- if this value cannot be converted to an OBJECTIDpublic Object toJavaObject()
ASNValue
toJavaObject
in class ASNValue
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |