All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.jsp.jml.JmlBoolean

oracle.jsp.jml.JmlBoolean

public final class JmlBoolean
JmlBoolean wraps the primitive type boolean in a Java bean. It has a single property, value that represents the bean's typed value. It is designed to work more effectively in JSPs than Java primitive types or their corresponding wrapper java.lang.* objects. Specifically, JmlBoolean overcomes:


Variable Index

 o FALSE
The JmlBoolean object corresponding to the primitive value false.
 o TRUE
The JmlBoolean object corresponding to the primitive value true.

Constructor Index

 o JmlBoolean()
Constructs a default JmlBoolean object.
 o JmlBoolean(Boolean)
Constructs a JmlBoolean object whose value is java.lang.Boolean .
 o JmlBoolean(boolean)
Constructs a JmlBoolean object whose value is boolean.
 o JmlBoolean(JmlBoolean)
Constructs a JmlBoolean object whose value is taken from another JmlBoolean .
 o JmlBoolean(String)
Constructs a JmlBoolean object whose value is represented by java.lang.String.

Method Index

 o equals(boolean)
Tests whether the beans's value property is equal to boolean.
 o getValue()
Returns the beans's value property as a boolean.
 o setTypedValue(Boolean)
Sets the beans's value property to the java.lang.Boolean.
 o setTypedValue(JmlBoolean)
Sets the beans's value property to the JmlBoolean.
 o setTypedValue(String)
Sets the beans's value property to the java.lang.String.
 o setValue(boolean)
Sets the beans's value property to the boolean.
 o toString()
Returns the beans's value property as a java.lang.String.
 o typedEquals(Boolean)
Tests whether the beans's value property is equal to java.lang.Boolean.
 o typedEquals(JmlBoolean)
Tests whether the beans's value property is equal to JmlBoolean.
 o typedEquals(String)
Tests whether the beans's value property is equal to java.lang.String.

Variables

 o TRUE
 public static final JmlBoolean TRUE
The JmlBoolean object corresponding to the primitive value true.

 o FALSE
 public static final JmlBoolean FALSE
The JmlBoolean object corresponding to the primitive value false.

Constructors

 o JmlBoolean
 public JmlBoolean()
Constructs a default JmlBoolean object. The object's default value is false.

 o JmlBoolean
 public JmlBoolean(boolean bool)
Constructs a JmlBoolean object whose value is boolean.

 o JmlBoolean
 public JmlBoolean(String bool)
Constructs a JmlBoolean object whose value is represented by java.lang.String. The value is converted according to the same rules as the java.lang.Boolean String constructor.

 o JmlBoolean
 public JmlBoolean(Boolean bool)
Constructs a JmlBoolean object whose value is java.lang.Boolean .

 o JmlBoolean
 public JmlBoolean(JmlBoolean bool)
Constructs a JmlBoolean object whose value is taken from another JmlBoolean .

Methods

 o getValue
 public boolean getValue()
Returns the beans's value property as a boolean.

 o setValue
 public void setValue(boolean bool)
Sets the beans's value property to the boolean.

 o setTypedValue
 public void setTypedValue(String bool)
Sets the beans's value property to the java.lang.String. Conversion occurs according to the same rules as java.lang.Boolean.valueOf().

 o setTypedValue
 public void setTypedValue(Boolean bool)
Sets the beans's value property to the java.lang.Boolean.

 o setTypedValue
 public void setTypedValue(JmlBoolean bool)
Sets the beans's value property to the JmlBoolean.

 o equals
 public boolean equals(boolean bool)
Tests whether the beans's value property is equal to boolean.

 o typedEquals
 public boolean typedEquals(Boolean bool)
Tests whether the beans's value property is equal to java.lang.Boolean.

 o typedEquals
 public boolean typedEquals(String bool)
Tests whether the beans's value property is equal to java.lang.String. The comparison is made after converting the java.lang.String to a JmlBoolean.

 o typedEquals
 public boolean typedEquals(JmlBoolean bool)
Tests whether the beans's value property is equal to JmlBoolean.

 o toString
 public String toString()
Returns the beans's value property as a java.lang.String. If true then "true" is returned. If false then "false" is returned.


All Packages  Class Hierarchy  This Package  Previous  Next  Index