Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

text::TAbstractNumberTranslator Class Reference

Inheritance diagram for text::TAbstractNumberTranslator:

text::TFixedPointDecimalTranslator text::TNumberTranslator List of all members.

Public Methods

abstract double toDouble (String yNUMBER) throws ParseException
abstract float toFloat (String yNUMBER) throws ParseException
abstract int toInt (String yNUMBER) throws ParseException
abstract String toString (double dNUMBER)
abstract String toString (Number tNUMBER)

Detailed Description

Class to convert from numbers to their string representation and vice-versa.

Definition at line 38 of file TAbstractNumberTranslator.java.


Member Function Documentation

abstract double text::TAbstractNumberTranslator::toDouble String    yNUMBER throws ParseException [pure virtual]
 

Translates the number in yNUMBER to a double value.

Parameters:
yNUMBER  String with the locale representation of a double value.
Precondition:
yNUMBER represents a double value in the selected locale.
Returns:
A double value corresponding to the number in yNUMBER converted using selected locale.

Implemented in text::TFixedPointDecimalTranslator, and text::TNumberTranslator.

abstract float text::TAbstractNumberTranslator::toFloat String    yNUMBER throws ParseException [pure virtual]
 

Translates the number in yNUMBER to a float value.

Parameters:
yNUMBER  String with the locale representation of a float value.
Precondition:
yNUMBER represents a float value in the selected locale.
Returns:
A float value corresponding to the number in yNUMBER converted using selected locale.

Implemented in text::TFixedPointDecimalTranslator, and text::TNumberTranslator.

abstract int text::TAbstractNumberTranslator::toInt String    yNUMBER throws ParseException [pure virtual]
 

Translates the number in yNUMBER to a integer value.

Parameters:
yNUMBER  String with the locale representation of a integer value.
Precondition:
yNUMBER represents a integer value in the selected locale.
Returns:
An integer value corresponding to the number in yNUMBER converted using selected locale.

Implemented in text::TFixedPointDecimalTranslator, and text::TNumberTranslator.

abstract String text::TAbstractNumberTranslator::toString Number    tNUMBER [pure virtual]
 

Translates the number tNUMBER to its string representation in the selected locale.

Parameters:
tNUMBER  Number.
Returns:
An string with the representation of the number converted using selected locale.

Implemented in text::TFixedPointDecimalTranslator, and text::TNumberTranslator.

abstract String text::TAbstractNumberTranslator::toString double    dNUMBER [pure virtual]
 

Translates the number dNUMBER to its string representation in the selected locale.

Parameters:
dNUMBER  Double value.
Returns:
An string with the representation of the double value converted using selected locale.

Implemented in text::TFixedPointDecimalTranslator, and text::TNumberTranslator.


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:28 2003 for MPCL by doxygen1.2.18