borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

BooleanFormatter component

java.lang.Object
   +----borland.jbcl.model.ItemFormatter
           +----borland.jbcl.model.VariantFormatter
                   +----borland.jbcl.model.BooleanFormatter

About the BooleanFormatter component

Constructors  Properties  Methods  
The BooleanFormatter class formats and parses boolean data.

BooleanFormatter constructors

BooleanFormatter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.model.VariantFormatter

Properties implemented in java.lang.Object

BooleanFormatter methods

Methods implemented in this class

Methods implemented in borland.jbcl.model.VariantFormatter

Methods implemented in java.lang.Object


BooleanFormatter constructors

BooleanFormatter()

  public BooleanFormatter()
Constructs a BooleanFormatter object.

BooleanFormatter properties

variantType

 public int getVariantType()
Returns the Variant type, which is always Variant.BOOLEAN for BooleanFormatter classes.

BooleanFormatter methods

format(borland.jbcl.util.Variant)

  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:

value
The value to be formatted to a String.

Overrides: borland.jbcl.model.VariantFormatter.format(Variant)

parse(java.lang.String, borland.jbcl.util.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:

stringValue
The string to be parsed.

Overrides: borland.jbcl.model.VariantFormatter.parse(String, Variant)