borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
java.lang.Object +----borland.jbcl.model.ItemFormatter +----borland.jbcl.model.VariantFormatter +----borland.jbcl.model.BigDecimalFormatter
Constructors Properties MethodsThe BigDecimalFormatter class formats and parses the JDK BigDecimal values.
public BigDecimalFormatter(int scale)Constructs a BigDecimalFormatter object.
Parameters:
public int getVariantType()Returns the Variant type, which is always Variant.BIGDECIMAL for BigDecimalFormatter classes.
public String format(borland.jbcl.util.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:
Overrides: borland.jbcl.model.VariantFormatter.format(borland.jbcl.util.Variant)
public void parse(java.lang.String stringValue, borland.jbcl.util.Variant value)Analyzes the given String and produces as output a Variant containing the approriate value.
Parameters:
Overrides: borland.jbcl.model.VariantFormatter.parse(String, Variant)