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:


Constructor Index

 o JmlString()
Constructs a default JmlString object.
 o JmlString(JmlString)
Constructs a JmlString object whose value is JmlString.
 o JmlString(String)
Constructs a JmlString object whose value is java.lang.String.

Method Index

 o equals(JmlString)
Tests whether the beans's value property is equal to the JmlString.
 o equals(String)
Tests whether the beans's value property is equal to the java.lang.String.
 o getValue()
Returns the beans's value property as a java.lang.String.
 o isEmpty()
Tests whether the beans's value property is "".
 o setTypedValue(JmlString)
Sets the beans's value property to the JmlString.
 o setValue(String)
Sets the beans's value property to the java.lang.String.

Constructors

 o JmlString
 public JmlString()
Constructs a default JmlString object. The object's default value is a zero length (empty) string, "".

 o JmlString
 public JmlString(String str)
Constructs a JmlString object whose value is java.lang.String.

 o JmlString
 public JmlString(JmlString str)
Constructs a JmlString object whose value is JmlString.

Methods

 o getValue
 public String getValue()
Returns the beans's value property as a java.lang.String.

 o 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.

 o 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.

 o isEmpty
 public boolean isEmpty()
Tests whether the beans's value property is "".

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

 o 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