All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.jsp.jml.JmlNumber

oracle.jsp.jml.JmlNumber

public final class JmlNumber
JmlNumber 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, JmlNumber overcomes:


Constructor Index

 o JmlNumber()
Constructs a default JmlNumber object.
 o JmlNumber(int)
Constructs a JmlNumber object whose value is int.
 o JmlNumber(Integer)
Constructs a JmlNumber object whose value is java.lang.Integer.
 o JmlNumber(JmlNumber)
Constructs a JmlNumber object whose value is JmlNumber.
 o JmlNumber(String)
Constructs a JmlNumber object whose value is java.lang.String.

Method Index

 o equals(int)
Tests whether the beans's value property is equal to int.
 o getValue()
Returns the beans's value property as a int.
 o setTypedValue(Integer)
Sets the beans's value property to the java.lang.Integer.
 o setTypedValue(JmlNumber)
Sets the beans's value property to the JmlNumber.
 o setTypedValue(String)
Sets the beans's value property to the java.lang.String.
 o setValue(int)
Sets the beans's value property to the int.
 o toString()
Returns the beans's value property as a java.lang.String.
 o typedEquals(Integer)
Tests whether the beans's value property is equal to java.lang.Integer.
 o typedEquals(JmlNumber)
Tests whether the beans's value property is equal to JmlNumber.
 o typedEquals(String)
Tests whether the beans's value property is equal to java.lang.String.

Constructors

 o JmlNumber
 public JmlNumber()
Constructs a default JmlNumber object. The object's default value is 0.

 o JmlNumber
 public JmlNumber(int num)
Constructs a JmlNumber object whose value is int.

 o JmlNumber
 public JmlNumber(String num)
Constructs a JmlNumber object whose value is java.lang.String. Conversion is equivalent to java.lang.Integer.decode().

 o JmlNumber
 public JmlNumber(Integer num)
Constructs a JmlNumber object whose value is java.lang.Integer.

 o JmlNumber
 public JmlNumber(JmlNumber num)
Constructs a JmlNumber object whose value is JmlNumber.

Methods

 o getValue
 public int getValue()
Returns the beans's value property as a int.

 o setValue
 public void setValue(int num)
Sets the beans's value property to the int.

 o setTypedValue
 public void setTypedValue(String num)
Sets the beans's value property to the java.lang.String. Conversion occurs according to the same rules as java.lang.Integer.decode().

 o setTypedValue
 public void setTypedValue(Integer num)
Sets the beans's value property to the java.lang.Integer.

 o setTypedValue
 public void setTypedValue(JmlNumber num)
Sets the beans's value property to the JmlNumber.

 o equals
 public boolean equals(int num)
Tests whether the beans's value property is equal to int.

 o typedEquals
 public boolean typedEquals(Integer num)
Tests whether the beans's value property is equal to java.lang.Integer.

 o typedEquals
 public boolean typedEquals(String num)
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 JmlNumber.

 o typedEquals
 public boolean typedEquals(JmlNumber num)
Tests whether the beans's value property is equal to JmlNumber.

 o toString
 public String toString()
Returns the beans's value property as a java.lang.String. The java.lang.String is represented as java.lang.Integer.toString().


All Packages  Class Hierarchy  This Package  Previous  Next  Index