borland Packages Class Hierarchy dx.text Package
ObjectFormatter component
java.lang.Object
+----com.borland.dx.text.ItemFormatter
+----com.borland.dx.text.VariantFormatter
+----com.borland.dx.text.ObjectFormatter
About the ObjectFormatter component
Constructors Properties Methods
Implements Serializable
The ObjectFormatter component formats and parses data of type Object.
ObjectFormatter constructors
ObjectFormatter properties
*Read-only properties **Write-only properties
Properties implemented in this class
Properties implemented in java.lang.Object
ObjectFormatter methods
Methods implemented in this class
Methods implemented in java.lang.Object
- clone()
- equals(java.lang.Object)
- finalize()
- hashCode()
- notify()
- notifyAll()
- toString()
- wait()
- wait(long)
- wait(long, int)
ObjectFormatter constructors
ObjectFormatter()
public ObjectFormatter()
Creates an ObjectFormatter class.
ObjectFormatter properties
variantType
public int getVariantType()
Returns the Variant type, which is always Variant.OBJECT for ObjectFormatter.
ObjectFormatter methods
format(com.borland.dx.dataset.Variant)
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.
Parameters:
- value
- The value to be formatted to a String.
Overrides:
com.borland.dx.text.VariantFormatter.format(com.borland.dx.dataset.Variant)
parse(com.borland.dx.dataset.Variant, char[], int, int)
public void parse(Variant variant, char[] value, int offset, int len)
A high-speed parse that parses directly into a character array.
Parameters:
- variant
- The parsed value (cannot be null).
- value
- The character array containing the text to parse.
- offset
- The zero-based offset into the character array.
- len
- The maximum number of characters in the array to use in the parse.
Overrides:
com.borland.dx.text.VariantFormatter.parse(com.borland.dx.dataset.Variant, char[], int, int)
parse(java.lang.String, com.borland.dx.dataset.Variant)
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.
Parameters:
- stringValue
- The string to be parsed.
- value
- The Variant that receives the parsed result.
Overrides:
com.borland.dx.text.VariantFormatter.parse(java.lang.String, com.borland.dx.dataset.Variant)