borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----borland.jbcl.model.ItemFormatter +----borland.jbcl.model.VariantFormatter +----borland.jbcl.model.BooleanFormatter
Constructors Properties Methods
Implements Serializable
The BooleanFormatter class formats and parses boolean data.
public BooleanFormatter()Constructs a BooleanFormatter object.
public int getVariantType()Returns the Variant type, which is always Variant.BOOLEAN for BooleanFormatter classes.
public final String format(borland.jbcl.util.Variant value)Returns a String representing the given boolean 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(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 appropriate value. A null return value results when stringValue is null or empty.
Parameters:
Overrides: borland.jbcl.model.VariantFormatter.parse(String, Variant)