net.percederberg.mibble.value
Class BooleanValue

java.lang.Object
  |
  +--net.percederberg.mibble.value.BooleanValue
All Implemented Interfaces:
MibValue

public class BooleanValue
extends java.lang.Object
implements MibValue

A boolean MIB value.

Since:
2.0

Field Summary
static BooleanValue FALSE
          The boolean false value.
static BooleanValue TRUE
          The boolean true value.
 
Method Summary
 MibValue initialize(MibLoaderLog log)
          Initializes the MIB value.
 java.lang.Object toObject()
          Returns a Java Boolean representation of this value.
 java.lang.String toString()
          Returns a string representation of this value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

public static final BooleanValue TRUE
The boolean true value.


FALSE

public static final BooleanValue FALSE
The boolean false value.

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, and returns the basic value. No value information is lost by this operation. This method may modify this object as a side-effect, and will be called by the MIB loader.

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

toObject

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

Specified by:
toObject in interface MibValue
Returns:
a Java Boolean representation of this value

toString

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

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this value