|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.netsnmp.ASN.ASNValue
Base class for value types used for getting/setting data from remote Agents
Constructor Summary | |
ASNValue()
|
Method Summary | |
abstract int |
asn_type()
|
int |
compareTo(Object o)
|
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. |
abstract 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. |
abstract ASN_TYPE |
type()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ASNValue()
Method Detail |
public boolean toBoolean() throws NetSNMPBadValue
NetSNMPBadValue
- if this value is not a BOOLEANpublic int toInt() throws NetSNMPBadValue
NetSNMPBadValue
- if this value is not some integer typepublic long toInt64() throws NetSNMPBadValue
NetSNMPBadValue
- if this value is not some long typepublic byte[] toOctetString() throws NetSNMPBadValue
NetSNMPBadValue
- if this value is not an OCTECT_STRpublic int[] toOBJECTID() throws NetSNMPBadValue
NetSNMPBadValue
- if this value cannot be converted to an OBJECTIDpublic abstract Object toJavaObject()
public abstract ASN_TYPE type()
public abstract int asn_type()
public int compareTo(Object o)
compareTo
in interface Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |