|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--oracle.jsp.jml.JmlString
JmlString wraps the primitive type int 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,
JmlString overcomes:
java.lang.* objects using java.lang.* object's value after created.
| Constructor Summary | |
JmlString()
Constructs a default JmlString object. |
|
JmlString(JmlString str)
Constructs a JmlString object whose value is
JmlString. |
|
JmlString(java.lang.String str)
Constructs a JmlString object whose value is
java.lang.String. |
|
| Method Summary | |
boolean |
equals(JmlString s)
Tests whether the beans's value property is equal to the JmlString. |
boolean |
equals(java.lang.String s)
Tests whether the beans's value property is equal to the java.lang.String. |
java.lang.String |
getValue()
Returns the beans's value property as a
java.lang.String. |
boolean |
isEmpty()
Tests whether the beans's value property is "". |
void |
setTypedValue(JmlString str)
Sets the beans's value property to the
JmlString. |
void |
setTypedValue(java.lang.String str)
Sets the beans's value property to the
java.lang.String. |
void |
setValue(java.lang.String str)
Sets the beans's value property to the
java.lang.String. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public JmlString()
JmlString object. The object's default
value is a zero length (empty) string, "".public JmlString(java.lang.String str)
JmlString object whose value is
java.lang.String.public JmlString(JmlString str)
JmlString object whose value is
JmlString.| Method Detail |
public java.lang.String getValue()
value property as a
java.lang.String.public void setValue(java.lang.String str)
value property to the
java.lang.String. If the java.lang.String
is null, the value is set to an zero length (empty)
string.public void setTypedValue(JmlString str)
value property to the
JmlString. If the JmlString
is null, the value is set to an zero length (empty)
string.public void setTypedValue(java.lang.String str)
value property to the
java.lang.String. If the java.lang.String
is null, the value is set to an zero length (empty)
string.public boolean isEmpty()
value property is "".public boolean equals(java.lang.String s)
value property is equal to the java.lang.String.public boolean equals(JmlString s)
value property is equal to the JmlString.public java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||