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

LongFormatter component

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

About the LongFormatter component

Constructors  Properties  Methods  
The LongFormatter class formats and parses the long data type.

LongFormatter constructors

LongFormatter 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

LongFormatter methods

Methods implemented in this class

Methods implemented in borland.jbcl.model.VariantFormatter

Methods implemented in java.lang.Object


LongFormatter constructors

LongFormatter()

  public LongFormatter()
Constructs a LongFormatter object.

LongFormatter properties

variantType

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

LongFormatter methods

format(borland.jbcl.util.Variant)

  public final String format(borland.jbcl.util.Variant value)
Returns a String representing the given long 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: borland.jbcl.model.VariantFormatter.format(borland.jbcl.util.Variant)

parse(borland.jbcl.util.Variant, char[], int, int)

  public final void parse(borland.jbcl.util.Variant variant, char[] value, int offset, int len)
A high-speed parse that parses directly into a character array.

Parameters:

variant
The parsed value (may not 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: borland.jbcl.model.VariantFormatter.parse(borland.jbcl.util.Variant, char[], int, int)

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 an Object 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(java.lang.String, borland.jbcl.util.Variant)