borland Packages Class Hierarchy dx.text Package
BigDecimalFormatter class
java.lang.Object
+----com.borland.dx.text.ItemFormatter
+----com.borland.dx.text.VariantFormatter
+----com.borland.dx.text.BigDecimalFormatter
About the BigDecimalFormatter class
Constructors Properties Methods
Implements Serializable
The BigDecimalFormatter
class formats and parses the java.math.BigDecimal
values.
See also:
String-based patterns (masks)
BigDecimalFormatter constructors
BigDecimalFormatter properties
*Read-only properties **Write-only properties
Properties implemented in this class
BigDecimalFormatter 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)
BigDecimalFormatter constructors
BigDecimalFormatter(int)
public BigDecimalFormatter(int scale)
Constructs a BigDecimalFormatter
object.
Parameters:
scale
- Specify
scale
as a power of 10. The integer value is divided by implicitly.
BigDecimalFormatter properties
variantType
public int getVariantType()
Returns the Variant
type, which is always Variant.BIGDECIMAL
for BigDecimalFormatter
.
BigDecimalFormatter methods
format(com.borland.dx.dataset.Variant)
public String format(Variant value)
Returns a String
representing the given BigDecimal
value stored in the supplied Variant
. 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(com.borland.dx.dataset.Variant)
parse(java.lang.String, com.borland.dx.dataset.Variant)
public void parse(String stringValue, Variant value)
Analyzes the given String
and produces as output a Variant
containing the approriate value.
Parameters:
stringValue
- The string to be parsed.
value
- The
Variant
that receives the parsed result.
Overrides:
com.borland.dx.text.VariantFormatter.parse(java.lang.String, com.borland.dx.dataset.Variant)