borland Packages Class Hierarchy dx.text Package
DoubleFormatter class
java.lang.Object
+----com.borland.dx.text.ItemFormatter
+----com.borland.dx.text.VariantFormatter
+----com.borland.dx.text.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 java.lang.Object
DoubleFormatter methods
Methods implemented in this class
- format(com.borland.dx.dataset.Variant, com.borland.jb.util.FastStringBuffer)
- format(java.lang.Object)
- getSpecialObject(int)
- parse(com.borland.dx.dataset.Variant, char[], int, int)
- parse(java.lang.String)
- parse(java.lang.String, com.borland.dx.dataset.Variant, int)
- setFromDouble(com.borland.dx.dataset.Variant, int, double)
- setFromInt(com.borland.dx.dataset.Variant, int, int)
- setPattern(java.lang.String)
- setSpecialObject(int, java.lang.Object)
Methods implemented in java.lang.Object
- clone()
- equals(java.lang.Object)
- finalize()
- hashCode()
- notify()
- notifyAll()
- toString()
- wait()
- wait(long)
- wait(long, int)
DoubleFormatter constructors
DoubleFormatter(int)
public DoubleFormatter(int type)
Constructs a DoubleFormatter object.
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 a DoubleFormatter.
DoubleFormatter methods
format(com.borland.dx.dataset.Variant)
public final String format(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:
com.borland.dx.text.VariantFormatter.format(Variant)
parse(java.lang.String, com.borland.dx.dataset.Variant)
public final void parse(String stringValue, 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:
com.borland.dx.text.VariantFormatter.parse(String, Variant)