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:
- inability to attach Java primitive types on JSP scope (objects).
- inability to declare most
java.lang.* objects using
- inability to modify a
java.lang.* object's value after created.
-
FALSE
- The
JmlBoolean object corresponding to the primitive value false.
-
TRUE
- The
JmlBoolean object corresponding to the primitive value true.
-
JmlBoolean()
- Constructs a default
JmlBoolean object.
-
JmlBoolean(Boolean)
- Constructs a
JmlBoolean object whose value is
java.lang.Boolean .
-
JmlBoolean(boolean)
- Constructs a
JmlBoolean object whose value is
boolean.
-
JmlBoolean(JmlBoolean)
- Constructs a
JmlBoolean object whose value is taken
from another JmlBoolean .
-
JmlBoolean(String)
- Constructs a
JmlBoolean object whose value is represented by
java.lang.String.
-
equals(boolean)
- Tests whether the beans's
value property is equal to
boolean.
-
getValue()
- Returns the beans's
value property as a
boolean.
-
setTypedValue(Boolean)
- Sets the beans's
value property to the
java.lang.Boolean.
-
setTypedValue(JmlBoolean)
- Sets the beans's
value property to the
JmlBoolean.
-
setTypedValue(String)
- Sets the beans's
value property to the
java.lang.String.
-
setValue(boolean)
- Sets the beans's
value property to the
boolean.
-
toString()
- Returns the beans's
value property as a
java.lang.String.
-
typedEquals(Boolean)
- Tests whether the beans's
value property is equal to
java.lang.Boolean.
-
typedEquals(JmlBoolean)
- Tests whether the beans's
value property is equal to
JmlBoolean.
-
typedEquals(String)
- Tests whether the beans's
value property is equal to
java.lang.String.
TRUE
public static final JmlBoolean TRUE
- The
JmlBoolean object corresponding to the primitive value true.
FALSE
public static final JmlBoolean FALSE
- The
JmlBoolean object corresponding to the primitive value false.
JmlBoolean
public JmlBoolean()
- Constructs a default
JmlBoolean object. The object's default
value is false.
JmlBoolean
public JmlBoolean(boolean bool)
- Constructs a
JmlBoolean object whose value is
boolean.
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.
JmlBoolean
public JmlBoolean(Boolean bool)
- Constructs a
JmlBoolean object whose value is
java.lang.Boolean .
JmlBoolean
public JmlBoolean(JmlBoolean bool)
- Constructs a
JmlBoolean object whose value is taken
from another JmlBoolean .
getValue
public boolean getValue()
- Returns the beans's
value property as a
boolean.
setValue
public void setValue(boolean bool)
- Sets the beans's
value property to the
boolean.
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().
setTypedValue
public void setTypedValue(Boolean bool)
- Sets the beans's
value property to the
java.lang.Boolean.
setTypedValue
public void setTypedValue(JmlBoolean bool)
- Sets the beans's
value property to the
JmlBoolean.
equals
public boolean equals(boolean bool)
- Tests whether the beans's
value property is equal to
boolean.
typedEquals
public boolean typedEquals(Boolean bool)
- Tests whether the beans's
value property is equal to
java.lang.Boolean.
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.
typedEquals
public boolean typedEquals(JmlBoolean bool)
- Tests whether the beans's
value property is equal to
JmlBoolean.
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