public class

SnmpNull

extends SnmpValue
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpValue
     ↳ com.sun.jmx.snmp.SnmpNull

Class Overview

Represents an SNMP null value.

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
SnmpNull()
Constructs a new SnmpNull.
SnmpNull(String dummy)
Constructs a new SnmpNull.
SnmpNull(int t)
Constructs a new SnmpNull from the specified tag value.
Public Methods
synchronized final Object clone()
Clones the SnmpNull object, making a copy of its data.
synchronized final SnmpValue duplicate()
Performs a clone action.
int getTag()
Returns the tag value of this SnmpNull.
final String getTypeName()
Returns a textual description of the type object.
boolean isEndOfMibViewValue()
Checks if this SnmpNull object corresponds to an endOfMibView value.
boolean isNoSuchInstanceValue()
Checks if this SnmpNull object corresponds to a noSuchInstance value.
boolean isNoSuchObjectValue()
Checks if this SnmpNull object corresponds to a noSuchObject value.
SnmpOid toOid()
Converts the NULL value to its SnmpOid form.
String toString()
Converts the NULL value to its ASN.1 String form.
[Expand]
Inherited Methods
From class com.sun.jmx.snmp.SnmpValue
From class java.lang.Object

Public Constructors

public SnmpNull ()

Constructs a new SnmpNull.

public SnmpNull (String dummy)

Constructs a new SnmpNull.
For mibgen private use only.

public SnmpNull (int t)

Constructs a new SnmpNull from the specified tag value.

Parameters
t The initialization value.

Public Methods

public final synchronized Object clone ()

Clones the SnmpNull object, making a copy of its data.

Returns
  • The object clone.

public final synchronized SnmpValue duplicate ()

Performs a clone action. This provides a workaround for the SnmpValue interface.

Returns
  • The SnmpValue clone.

public int getTag ()

Returns the tag value of this SnmpNull.

Returns
  • The value.

public final String getTypeName ()

Returns a textual description of the type object.

Returns
  • ASN.1 textual description.

public boolean isEndOfMibViewValue ()

Checks if this SnmpNull object corresponds to an endOfMibView value.

Returns

public boolean isNoSuchInstanceValue ()

Checks if this SnmpNull object corresponds to a noSuchInstance value.

Returns

public boolean isNoSuchObjectValue ()

Checks if this SnmpNull object corresponds to a noSuchObject value.

Returns

public SnmpOid toOid ()

Converts the NULL value to its SnmpOid form. Normally, a NULL value cannot be used as an index value, this method triggers an exception.

Returns
  • The OID representation of the value.

public String toString ()

Converts the NULL value to its ASN.1 String form. When the tag is not the universal one, it is preprended to the String form.

Returns
  • The String representation of the value.