borland Packages Class Hierarchy dx.text Package
java.lang.Object +----com.borland.dx.text.ItemFormatter +----com.borland.dx.text.VariantFormatter +----com.borland.dx.text.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(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.
value
String
.
public final void parse(String stringValue, 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.
stringValue
value
Variant
that receives the parsed result.