net.percederberg.mibble.value
Class NullValue

java.lang.Object
  extended bynet.percederberg.mibble.MibValue
      extended bynet.percederberg.mibble.value.NullValue

public class NullValue
extends MibValue

A null MIB value.

Since:
2.0

Field Summary
static NullValue NULL
          The one a only null value instance.
 
Method Summary
 MibValue createReference()
          Creates a value reference to this value.
 MibValue initialize(MibLoaderLog log)
          Initializes the MIB value.
 java.lang.Object toObject()
          Returns a Java null representation of this value.
 java.lang.String toString()
          Returns a string representation of this value.
 
Methods inherited from class net.percederberg.mibble.MibValue
getName, getReferenceSymbol, isReferenceTo, isReferenceTo, setReferenceSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final NullValue NULL
The one a only null value instance.

Method Detail

initialize

public MibValue initialize(MibLoaderLog log)
Initializes the MIB value. This will remove all levels of indirection present, such as references to other values. No value information is lost by this operation. This method may modify this object as a side-effect, and will return the basic value.

NOTE: This is an internal method that should only be called by the MIB loader.

Specified by:
initialize in class MibValue
Parameters:
log - the MIB loader log
Returns:
the basic MIB value

createReference

public MibValue createReference()
Creates a value reference to this value. The value reference is normally an identical value. Only certain values support being referenced, and the default implementation of this method throws an exception.

NOTE: This is an internal method that should only be called by the MIB loader.

Overrides:
createReference in class MibValue
Returns:
the MIB value reference
Since:
2.2

toObject

public java.lang.Object toObject()
Returns a Java null representation of this value.

Specified by:
toObject in class MibValue
Returns:
a Java null representation of this value

toString

public java.lang.String toString()
Returns a string representation of this value.

Returns:
a string representation of this value