com.sun.jaw.snmp.common
Class SnmpValue

java.lang.Object
  |
  +--com.sun.jaw.snmp.common.SnmpValue
Direct Known Subclasses:
SnmpCounter64, SnmpInt, SnmpNull, SnmpOid, SnmpString

public abstract class SnmpValue
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable, SnmpDataTypeEnums

The SnmpValue is an abstract representation of a SNMP Value. All classes provided for dealing with SNMP types should derive from this class.

See Also:
Serialized Form

Constructor Summary
SnmpValue()
           
 
Method Summary
abstract  SnmpValue duplicate()
          Same as clone, but you can not perform cloning using this object because clone is protected.
abstract  java.lang.String getTypeName()
          Returns a textual description of the object.
 java.lang.String toAsn1String()
          Returns a string form containing ASN.1 tagging information.
abstract  SnmpOid toOid()
          Returns the value encoded as an oid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpValue

public SnmpValue()
Method Detail

toAsn1String

public java.lang.String toAsn1String()
Returns a string form containing ASN.1 tagging information.
Returns:
The string form.

toOid

public abstract SnmpOid toOid()
Returns the value encoded as an oid. The method is particularly useful when dealing with indexed table made of several SNMP variables.
Returns:
The value encoded as an oid.

getTypeName

public abstract java.lang.String getTypeName()
Returns a textual description of the object.
Returns:
ASN.1 textual description.

duplicate

public abstract SnmpValue duplicate()
Same as clone, but you can not perform cloning using this object because clone is protected. This method should call clone().
Returns:
The SnmpValue clone.