All Packages Class Hierarchy This Package Previous Next Index
Class oracle.jsp.jml.JmlString
oracle.jsp.jml.JmlString
- public final class 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:
- 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.
-
JmlString()
- Constructs a default
JmlString object.
-
JmlString(JmlString)
- Constructs a
JmlString object whose value is
JmlString.
-
JmlString(String)
- Constructs a
JmlString object whose value is
java.lang.String.
-
equals(JmlString)
- Tests whether the beans's
value property is equal to the JmlString.
-
equals(String)
- Tests whether the beans's
value property is equal to the java.lang.String.
-
getValue()
- Returns the beans's
value property as a
java.lang.String.
-
isEmpty()
- Tests whether the beans's
value property is "".
-
setTypedValue(JmlString)
- Sets the beans's
value property to the
JmlString.
-
setValue(String)
- Sets the beans's
value property to the
java.lang.String.
JmlString
public JmlString()
- Constructs a default
JmlString object. The object's default
value is a zero length (empty) string, "".
JmlString
public JmlString(String str)
- Constructs a
JmlString object whose value is
java.lang.String.
JmlString
public JmlString(JmlString str)
- Constructs a
JmlString object whose value is
JmlString.
getValue
public String getValue()
- Returns the beans's
value property as a
java.lang.String.
setValue
public void setValue(String str)
- Sets the beans's
value property to the
java.lang.String. If the java.lang.String
is null, the value is set to an zero length (empty)
string.
setTypedValue
public void setTypedValue(JmlString str)
- Sets the beans's
value property to the
JmlString. If the JmlString
is null, the value is set to an zero length (empty)
string.
isEmpty
public boolean isEmpty()
- Tests whether the beans's
value property is "".
equals
public boolean equals(String s)
- Tests whether the beans's
value property is equal to the java.lang.String.
equals
public boolean equals(JmlString s)
- Tests whether the beans's
value property is equal to the JmlString.
All Packages Class Hierarchy This Package Previous Next Index