public abstract class

SnmpValue

extends Object
implements SnmpDataTypeEnums Serializable Cloneable
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpValue
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Is an abstract representation of an SNMP Value. All classes provided for dealing with SNMP types should derive from this class.

This API is a Sun Microsystems internal API and is subject to change without notice.

Summary

[Expand]
Inherited Constants
From interface com.sun.jmx.snmp.SnmpDataTypeEnums
Public Constructors
SnmpValue()
Public Methods
abstract SnmpValue duplicate()
Same as clone, but you cannot perform cloning using this object because clone is protected.
abstract String getTypeName()
Returns a textual description of the object.
boolean isEndOfMibViewValue()
This method returns false by default and is redefined in the SnmpNull class.
boolean isNoSuchInstanceValue()
This method returns false by default and is redefined in the SnmpNull class.
boolean isNoSuchObjectValue()
This method returns false by default and is redefined in the SnmpNull class.
String toAsn1String()
Returns a String form containing ASN.1 tagging information.
abstract SnmpOid toOid()
Returns the value encoded as an OID.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SnmpValue ()

Public Methods

public abstract SnmpValue duplicate ()

Same as clone, but you cannot perform cloning using this object because clone is protected. This method should call clone().

Returns
  • The SnmpValue clone.

public abstract String getTypeName ()

Returns a textual description of the object.

Returns
  • ASN.1 textual description.

public boolean isEndOfMibViewValue ()

This method returns false by default and is redefined in the SnmpNull class.

public boolean isNoSuchInstanceValue ()

This method returns false by default and is redefined in the SnmpNull class.

public boolean isNoSuchObjectValue ()

This method returns false by default and is redefined in the SnmpNull class.

public String toAsn1String ()

Returns a String form containing ASN.1 tagging information.

Returns
  • The String form.

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.