org.opennms.netmgt.snmp
Class AbstractSnmpValue

java.lang.Object
  extended by org.opennms.netmgt.snmp.AbstractSnmpValue
All Implemented Interfaces:
SnmpValue

public abstract class AbstractSnmpValue
extends java.lang.Object
implements SnmpValue


Field Summary
 
Fields inherited from interface org.opennms.netmgt.snmp.SnmpValue
SNMP_COUNTER32, SNMP_COUNTER64, SNMP_END_OF_MIB, SNMP_GAUGE32, SNMP_INT32, SNMP_IPADDRESS, SNMP_NO_SUCH_INSTANCE, SNMP_NO_SUCH_OBJECT, SNMP_NULL, SNMP_OBJECT_IDENTIFIER, SNMP_OCTET_STRING, SNMP_OPAQUE, SNMP_TIMETICKS
 
Constructor Summary
AbstractSnmpValue(int type)
           
 
Method Summary
 int getType()
           
 boolean isEndOfMib()
           
 boolean isNumeric()
           
 java.math.BigInteger toBigInteger()
           
 java.lang.String toDisplayString()
           
 java.lang.String toHexString()
           
 java.net.InetAddress toInetAddress()
           
 int toInt()
           
 long toLong()
           
 SnmpObjId toSnmpObjId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opennms.netmgt.snmp.SnmpValue
getBytes, isDisplayable, isNull
 

Constructor Detail

AbstractSnmpValue

public AbstractSnmpValue(int type)
Method Detail

isEndOfMib

public boolean isEndOfMib()
Specified by:
isEndOfMib in interface SnmpValue

toDisplayString

public java.lang.String toDisplayString()
Specified by:
toDisplayString in interface SnmpValue

isNumeric

public boolean isNumeric()
Specified by:
isNumeric in interface SnmpValue

toInt

public int toInt()
Specified by:
toInt in interface SnmpValue

toInetAddress

public java.net.InetAddress toInetAddress()
Specified by:
toInetAddress in interface SnmpValue

toLong

public long toLong()
Specified by:
toLong in interface SnmpValue

toHexString

public java.lang.String toHexString()
Specified by:
toHexString in interface SnmpValue

getType

public int getType()
Specified by:
getType in interface SnmpValue

toBigInteger

public java.math.BigInteger toBigInteger()
Specified by:
toBigInteger in interface SnmpValue

toSnmpObjId

public SnmpObjId toSnmpObjId()
Specified by:
toSnmpObjId in interface SnmpValue


Copyright © 2007. All Rights Reserved.