com.novell.admin.ns
Class BooleanValue

java.lang.Object
  extended bycom.novell.admin.ns.ValueComponent
      extended bycom.novell.admin.ns.Value
          extended bycom.novell.admin.ns.BooleanValue
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public final class BooleanValue
extends Value

Storage class for all syntaxes that use boolean types.

This is an immutable class.

See Also:
HexValue, StringValue, LongValue, StreamValue, Serialized Form

Constructor Summary
BooleanValue(Syntax syntax, boolean bool)
          Constructor that uses a primitive boolean type.
BooleanValue(Syntax syntax, java.lang.Boolean bool)
          Constructor that uses a Boolean object.
 
Method Summary
 java.lang.Boolean getBooleanValue()
          Returns the value as a Boolean object.
 boolean getValue()
          Returns the value as a boolean type.
 
Methods inherited from class com.novell.admin.ns.Value
clone
 
Methods inherited from class com.novell.admin.ns.ValueComponent
compareTo, equals, getSyntax, isWithinBounds, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanValue

public BooleanValue(Syntax syntax,
                    boolean bool)
Constructor that uses a primitive boolean type.

This constructor should only be called from boolean strategy classes and not directly in an xapplication.

Parameters:
syntax - Associated syntax for this boolean value.
bool - The boolean value.

BooleanValue

public BooleanValue(Syntax syntax,
                    java.lang.Boolean bool)
Constructor that uses a Boolean object.

This constructor should only be called from boolean strategy classes and not directly from an application.

Parameters:
syntax - Associated syntax for this boolean value.
bool - The Boolean object.
Method Detail

getBooleanValue

public java.lang.Boolean getBooleanValue()
Returns the value as a Boolean object.

Returns:
The value as a Boolean object.

getValue

public boolean getValue()
Returns the value as a boolean type.

Returns:
The value as a native boolean type.


API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated September 2 2004 0111.