artefaktur
software engineer &        architecture

 
 
 
 

class NumberFormat

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::text::NumberFormat Class Reference

#include <NumberFormat.h>

Inheritance diagram for acdk::text::NumberFormat:

acdk::text::Format acdk::lang::Object acdk::io::Serializable acdk::lang::Cloneable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::text::DecimalFormat List of all members.

Public Member Functions

 NumberFormat ()
 ~NumberFormat ()
int getMaximumIntegerDigits ()
void setMaximumIntegerDigits (int maximumIntegerDigits)
int getMinimumIntegerDigits ()
void setMinimumIntegerDigits (int minimumIntegerDigits)
int getMaximumFractionDigits ()
void setMaximumFractionDigits (int maximumFractionDigits)
int getMinimumFractionDigits ()
void setMinimumFractionDigits (int minimumFractionDigits)
bool isGroupingUsed ()
void setGroupingUsed (bool groupingUsed)
bool isParseIntegerOnly ()
void setParseIntegerOnly (bool parseIntegerOnly)
RString format (jlong number)
RString format (double number)
virtual RStringBuffer format (jlong number, IN(RStringBuffer) sb, IN(RFieldPosition) pos)=0
virtual RStringBuffer format (double number, IN(RStringBuffer) sb, IN(RFieldPosition) pos)=0
RNumber parse (IN(RString) str)
virtual RNumber parse (IN(RString) str, IN(RParsePosition) pp)=0
acdk::lang::Object parseObject (IN(RString) str, IN(RParsePosition) pp)
int hashCode ()
bool equals (IN(acdk::lang::Object) obj)
 Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.


Static Public Member Functions

RNumberFormat getInstance (IN(RLocale) locale=Locale::getDefault())
RNumberFormat getNumberInstance (IN(RLocale) locale)
RNumberFormat getCurrencyInstance ()
RNumberFormat getCurrencyInstance (IN(RLocale) locale)
RNumberFormat getPercentInstance ()
RNumberFormat getPercentInstance (IN(RLocale) locale)
RObjectArrayImpl< RLocalegetAvailableLocales ()

Static Public Attributes

int INTEGER_FIELD
int FRACTION_FIELD

Protected Attributes

bool _groupingUsed
int _maximumFractionDigits
int _maximumIntegerDigits
int _minimumFractionDigits
int _minimumIntegerDigits
RByte _maxFractionDigits
bool _parseIntegerOnly

Constructor & Destructor Documentation

acdk::text::NumberFormat::NumberFormat  ) 
 

acdk::text::NumberFormat::~NumberFormat  ) 
 


Member Function Documentation

bool acdk::text::NumberFormat::equals IN(acdk::lang::Object obj  )  [virtual]
 

Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

See also:
serialized_equals()

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::text::DecimalFormat.

virtual RStringBuffer acdk::text::NumberFormat::format double  number,
IN(RStringBuffer sb,
IN(RFieldPosition pos
[pure virtual]
 

Implemented in acdk::text::DecimalFormat.

virtual RStringBuffer acdk::text::NumberFormat::format jlong  number,
IN(RStringBuffer sb,
IN(RFieldPosition pos
[pure virtual]
 

Implemented in acdk::text::DecimalFormat.

RString acdk::text::NumberFormat::format double  number  ) 
 

RString acdk::text::NumberFormat::format jlong  number  ) 
 

RObjectArrayImpl<RLocale> acdk::text::NumberFormat::getAvailableLocales  )  [static]
 

RNumberFormat acdk::text::NumberFormat::getCurrencyInstance IN(RLocale locale  )  [static]
 

RNumberFormat acdk::text::NumberFormat::getCurrencyInstance  )  [inline, static]
 

RNumberFormat acdk::text::NumberFormat::getInstance IN(RLocale locale = Locale::getDefault()  )  [inline, static]
 

int acdk::text::NumberFormat::getMaximumFractionDigits  )  [inline]
 

int acdk::text::NumberFormat::getMaximumIntegerDigits  )  [inline]
 

int acdk::text::NumberFormat::getMinimumFractionDigits  )  [inline]
 

int acdk::text::NumberFormat::getMinimumIntegerDigits  )  [inline]
 

RNumberFormat acdk::text::NumberFormat::getNumberInstance IN(RLocale locale  )  [static]
 

RNumberFormat acdk::text::NumberFormat::getPercentInstance IN(RLocale locale  )  [static]
 

RNumberFormat acdk::text::NumberFormat::getPercentInstance  )  [inline, static]
 

int acdk::text::NumberFormat::hashCode  )  [virtual]
 

See also:
serialized_hashCode

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::text::DecimalFormat.

bool acdk::text::NumberFormat::isGroupingUsed  )  [inline]
 

bool acdk::text::NumberFormat::isParseIntegerOnly  )  [inline]
 

virtual RNumber acdk::text::NumberFormat::parse IN(RString str,
IN(RParsePosition pp
[pure virtual]
 

Implemented in acdk::text::DecimalFormat.

RNumber acdk::text::NumberFormat::parse IN(RString str  ) 
 

acdk::lang::Object acdk::text::NumberFormat::parseObject IN(RString str,
IN(RParsePosition pp
[inline, virtual]
 

Implements acdk::text::Format.

void acdk::text::NumberFormat::setGroupingUsed bool  groupingUsed  )  [inline]
 

void acdk::text::NumberFormat::setMaximumFractionDigits int  maximumFractionDigits  )  [inline]
 

void acdk::text::NumberFormat::setMaximumIntegerDigits int  maximumIntegerDigits  )  [inline]
 

void acdk::text::NumberFormat::setMinimumFractionDigits int  minimumFractionDigits  )  [inline]
 

void acdk::text::NumberFormat::setMinimumIntegerDigits int  minimumIntegerDigits  )  [inline]
 

void acdk::text::NumberFormat::setParseIntegerOnly bool  parseIntegerOnly  )  [inline]
 


Member Data Documentation

bool acdk::text::NumberFormat::_groupingUsed [protected]
 

RByte acdk::text::NumberFormat::_maxFractionDigits [protected]
 

int acdk::text::NumberFormat::_maximumFractionDigits [protected]
 

int acdk::text::NumberFormat::_maximumIntegerDigits [protected]
 

int acdk::text::NumberFormat::_minimumFractionDigits [protected]
 

int acdk::text::NumberFormat::_minimumIntegerDigits [protected]
 

bool acdk::text::NumberFormat::_parseIntegerOnly [protected]
 

int acdk::text::NumberFormat::FRACTION_FIELD [static]
 

int acdk::text::NumberFormat::INTEGER_FIELD [static]
 

 
Last modified 2005-05-08 18:33 by SYSTEM By Artefaktur, Ing. Bureau Kommer