borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
java.lang.Object +----borland.jbcl.model.ItemFormatter +----borland.jbcl.model.VariantFormatter +----borland.jbcl.model.DoubleFormatter
Constructors Properties MethodsThe DoubleFormatter class formats and parses data of type double.
public DoubleFormatter(int type)Constructs a DoubleFormatter class.
Parameters:
public int getVariantType()Returns the Variant type, which is always Variant.DOUBLE for DoubleFormatter classes.
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:
Overrides: borland.jbcl.model.VariantFormatter.format(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:
Overrides: borland.jbcl.model.VariantFormatter.parse(String, Variant)