borland Packages  Class Hierarchy  jbcl.model Package  Index 

DoubleFormatter class

java.lang.Object
   +----borland.jbcl.model.ItemFormatter
           +----borland.jbcl.model.VariantFormatter
                   +----borland.jbcl.model.DoubleFormatter

About the DoubleFormatter class

Constructors  Properties  Methods  

Implements Serializable

The DoubleFormatter class formats and parses data of type double.


DoubleFormatter constructors

DoubleFormatter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.model.VariantFormatter

Properties implemented in java.lang.Object

DoubleFormatter methods

Methods implemented in this class

Methods implemented in borland.jbcl.model.VariantFormatter

Methods implemented in java.lang.Object


DoubleFormatter constructors

DoubleFormatter(int)

  public DoubleFormatter(int type)
Constructs a DoubleFormatter class.

Parameters:

type
The type of Variant data. type must always be Variant.DOUBLE.

DoubleFormatter properties

variantType

 public int getVariantType()
Returns the Variant type, which is always Variant.DOUBLE for DoubleFormatter classes.

DoubleFormatter methods

format(borland.jbcl.util.Variant)

  public final String format(borland.jbcl.util.Variant value)
Returns a String representing the double value stored in the Variant. All reasonable attempts are made to "cast" the type found in the object into the appropriate type specified in the constructor of the implementing classes. A returned empty string indicates a null or empty input value. null means the formatting failed.

Parameters:

value
The value to be formatted to a String.

Overrides: borland.jbcl.model.VariantFormatter.format(Variant)

parse(java.lang.String, borland.jbcl.util.Variant)

  public final void parse(java.lang.String stringValue, borland.jbcl.util.Variant value)
Analyzes the given String and produces as output a Variant containing the approriate double value.

Parameters:

stringValue
The string to be parsed.
value
The Variant that receives the parsed result.

Overrides: borland.jbcl.model.VariantFormatter.parse(String, Variant)