|
Oracle Application Server Containers for J2EE Support for JavaServer Pages API Reference 10g Release 2 (10.1.2) B14015-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jsp.jml.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:
java.lang.*
objects using <jsp:useBean>java.lang.*
object's value after created.Field Summary | |
static JmlBoolean |
FALSE The JmlBoolean object corresponding to the primitive value false. |
static JmlBoolean |
TRUE The JmlBoolean object corresponding to the primitive value true. |
Constructor Summary | |
JmlBoolean() Constructs a default JmlBoolean object. |
|
JmlBoolean(boolean bool) Constructs a JmlBoolean object whose value is boolean . |
|
JmlBoolean(java.lang.Boolean bool) Constructs a JmlBoolean object whose value is java.lang.Boolean . |
|
JmlBoolean(JmlBoolean bool) Constructs a JmlBoolean object whose value is taken from another JmlBoolean . |
|
JmlBoolean(java.lang.String bool) Constructs a JmlBoolean object whose value is represented by java.lang.String . |
Method Summary | |
boolean |
equals(boolean bool) Tests whether the beans's value property is equal to boolean . |
boolean |
getValue() Returns the beans's value property as a boolean . |
void |
setTypedValue(boolean bool) Sets the beans's value property to the boolean . |
void |
setTypedValue(java.lang.Boolean bool) Sets the beans's value property to the java.lang.Boolean . |
void |
setTypedValue(JmlBoolean bool) Sets the beans's value property to the JmlBoolean . |
void |
setTypedValue(java.lang.String bool) Sets the beans's value property to the java.lang.String . |
void |
setValue(boolean bool) Sets the beans's value property to the boolean . |
java.lang.String |
toString() Returns the beans's value property as a java.lang.String . |
boolean |
typedEquals(java.lang.Boolean bool) Tests whether the beans's value property is equal to java.lang.Boolean . |
boolean |
typedEquals(JmlBoolean bool) Tests whether the beans's value property is equal to JmlBoolean . |
boolean |
typedEquals(java.lang.String bool) Tests whether the beans's value property is equal to java.lang.String . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final JmlBoolean TRUE
JmlBoolean
object corresponding to the primitive value true.public static final JmlBoolean FALSE
JmlBoolean
object corresponding to the primitive value false.Constructor Detail |
public JmlBoolean()
JmlBoolean
object. The object's default value
is false
.public JmlBoolean(boolean bool)
JmlBoolean
object whose value is boolean
.public JmlBoolean(java.lang.String bool)
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.public JmlBoolean(java.lang.Boolean bool)
JmlBoolean
object whose value is java.lang.Boolean
.public JmlBoolean(JmlBoolean bool)
JmlBoolean
object whose value is taken from another JmlBoolean
.Method Detail |
public boolean getValue()
value
property as a boolean
.public void setValue(boolean bool)
value
property to the boolean
.public void setTypedValue(java.lang.String bool)
value
property to the java.lang.String
. Conversion occurs according to the same rules as java.lang.Boolean.valueOf()
.public void setTypedValue(java.lang.Boolean bool)
value
property to the java.lang.Boolean
.public void setTypedValue(boolean bool)
value
property to the boolean
.public void setTypedValue(JmlBoolean bool)
value
property to the JmlBoolean
.public boolean equals(boolean bool)
value
property is equal to boolean
.public boolean typedEquals(java.lang.Boolean bool)
value
property is equal to java.lang.Boolean
.public boolean typedEquals(java.lang.String bool)
value
property is equal to java.lang.String
. The comparison is made after converting the java.lang.String
to a JmlBoolean
.public boolean typedEquals(JmlBoolean bool)
value
property is equal to JmlBoolean
.public java.lang.String toString()
value
property as a java.lang.String
. If true
then "true"
is returned. If false
then "false"
is returned.
|
Oracle Application Server Containers for J2EE Support for JavaServer Pages API Reference 10g Release 2 (10.1.2) B14015-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |