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

IntegerFormatter class

java.lang.Object
   +----borland.jbcl.model.ItemFormatter
           +----borland.jbcl.model.VariantFormatter
                   +----borland.jbcl.model.IntegerFormatter
                           +----borland.jbcl.model.ShortFormatter
                           +----borland.jbcl.model.ByteFormatter

About the IntegerFormatter class

Variables  Constructors  Properties  Methods  
A formatter class for parsing and formatting integer values.

IntegerFormatter variables

Variables implemented in this class

IntegerFormatter constructors

IntegerFormatter 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

IntegerFormatter methods

Methods implemented in this class

Methods implemented in borland.jbcl.model.VariantFormatter

Methods implemented in java.lang.Object


IntegerFormatter variables

type

  protected int type
For the IntegerFormatter class, type must always be Variant.INTEGER. For ByteFormatter classes, type must be Variant.BYTE. For ShortFormatter classes, type must be Variant.SHORT.

IntegerFormatter constructors

IntegerFormatter(int)

  public IntegerFormatter(int type)
Constructs an IntegerFormatter class.

Parameters:

type
The value of type must always be Variant.INTEGER for IntegerFormatter classes. For ByteFormatter classes, type must be Variant.BYTE. For ShortFormatter classes, type must be Variant.SHORT.

IntegerFormatter properties

variantType

 public int getVariantType()
Returns the Variant type.

IntegerFormatter methods

format(borland.jbcl.util.Variant)

  public final String format(borland.jbcl.util.Variant value)
Returns a string representation of the Variant value specified as value.

Parameters:

value
The value that is formatted.

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

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

  public 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(Variant, char[], int, int)

parse(java.lang.String, borland.jbcl.util.Variant)

  public void parse(java.lang.String stringValue, borland.jbcl.util.Variant value)
Analyzes the given String and produces as output a Variant containing the approriate value.

Parameters:

stringValue
The string to be parsed.
value
The Variant that receives the parsed result.

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