borland Packages Class Hierarchy dx.text Package
java.lang.Object +----com.borland.dx.text.ItemFormatter +----com.borland.dx.text.VariantFormatter +----com.borland.dx.text.ObjectFormatter
Constructors Properties Methods
Implements Serializable
The ObjectFormatter
component formats and parses data of type Object
.
public ObjectFormatter()Creates an
ObjectFormatter
class.
public int getVariantType()Returns the Variant type, which is always
Variant.OBJECT
for ObjectFormatter
.
public final String format(Variant value)Returns a
String
representing the given value stored in the Variant
. A returned empty string indicates a null or empty input value. null means the formatting failed.
value
String
.
public void parse(Variant variant, char[] value, int offset, int len)A high-speed parse that parses directly into a character array.
variant
value
offset
len
public void parse(String stringValue, Variant value)Analyzes the given
String
and produces as output a Variant
containing the approriate value. A null return value results when stringValue
is null or empty.
stringValue
value
Variant
that receives the parsed result.