artefaktur
software engineer &        architecture

 
 
 
 

class DateFormat

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

acdk::text::DateFormat Class Reference

#include <DateFormat.h>

Inheritance diagram for acdk::text::DateFormat:

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

Public Member Functions

virtual ~DateFormat ()
RStringBuffer format (IN(acdk::lang::Object) obj, IN(RStringBuffer) toAppendTo, IN(RFieldPosition) fieldPosition)
 This method formats an acdk::lang::Object into a String an appends the String to a StringBuffer.

virtual RStringBuffer format (IN(::acdk::util::RDate) date, IN(RStringBuffer) toAppendTo, IN(RFieldPosition) fieldPosition)=0
RString format (IN(::acdk::util::RDate) date)
::acdk::util::RDate parse (IN(RString) text)
virtual::acdk::util::RDate parse (IN(RString) text, IN(RParsePosition) pos)=0
acdk::lang::Object parseObject (IN(RString) source, IN(RParsePosition) pos)
static::acdk::util::RLocaleArray getAvailableLocales ()
void setCalendar (IN(::acdk::util::RCalendar) newCalendar)
::acdk::util::RCalendar getCalendar ()
void setNumberFormat (IN(RNumberFormat) newNumberFormat)
RNumberFormat getNumberFormat ()
void setTimeZone (IN(::acdk::util::RTimeZone) zone)
::acdk::util::RTimeZone getTimeZone ()
void setLenient (bool lenient)
bool getLenient ()
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.

acdk::lang::Object clone ()
 Creates a copy of this object.


Static Public Member Functions

RDateFormat getTimeInstance (FormatStyle style=DefaultFormatStyle)
RDateFormat getTimeInstance (FormatStyle style, IN(::acdk::util::RLocale) locale)
RDateFormat getDateInstance (FormatStyle style=DefaultFormatStyle)
RDateFormat getDateInstance (FormatStyle style, IN(::acdk::util::RLocale) locale)
RDateFormat getDateTimeInstance (FormatStyle dateStyle=DefaultFormatStyle, FormatStyle timeStyle=DefaultFormatStyle)
RDateFormat getDateTimeInstance (FormatStyle dateStyle, FormatStyle timeStyle, IN(::acdk::util::RLocale) locale)
RDateFormat getInstance ()

Protected Member Functions

 DateFormat ()

Protected Attributes

::acdk::util::RCalendar _calendar
RNumberFormat _numberFormat

Static Private Member Functions

RDateFormat get (FormatStyle timeStyle, FormatStyle dateStyle, IN(::acdk::util::RLocale) loc)

Private Attributes

bool _lenient

Constructor & Destructor Documentation

virtual acdk::text::DateFormat::~DateFormat  )  [virtual]
 

acdk::text::DateFormat::DateFormat  )  [protected]
 


Member Function Documentation

acdk::lang::Object acdk::text::DateFormat::clone  )  [inline, virtual]
 

Creates a copy of this object.

Returns:
The copied acdk::lang::Object.

Reimplemented from acdk::text::Format.

Reimplemented in acdk::text::SimpleDateFormat.

bool acdk::text::DateFormat::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::SimpleDateFormat.

RString acdk::text::DateFormat::format IN(::acdk::util::RDate date  ) 
 

virtual RStringBuffer acdk::text::DateFormat::format IN(::acdk::util::RDate date,
IN(RStringBuffer toAppendTo,
IN(RFieldPosition fieldPosition
[pure virtual]
 

RStringBuffer acdk::text::DateFormat::format IN(acdk::lang::Object obj,
IN(RStringBuffer toAppendTo,
IN(RFieldPosition fieldPosition
[virtual]
 

This method formats an acdk::lang::Object into a String an appends the String to a StringBuffer.

Parameters:
obj The acdk::lang::Object to format.
sb The StringBuffer to append to.
pos The desired FieldPosition, which is also updated by this call
Returns:
The updated StringBuffer. IllegalArgumentException If the acdk::lang::Object cannot be formatted

Implements acdk::text::Format.

RDateFormat acdk::text::DateFormat::get FormatStyle  timeStyle,
FormatStyle  dateStyle,
IN(::acdk::util::RLocale loc
[static, private]
 

static ::acdk::util::RLocaleArray acdk::text::DateFormat::getAvailableLocales  )  [inline]
 

::acdk::util::RCalendar acdk::text::DateFormat::getCalendar  )  [inline]
 

RDateFormat acdk::text::DateFormat::getDateInstance FormatStyle  style,
IN(::acdk::util::RLocale locale
[inline, static]
 

RDateFormat acdk::text::DateFormat::getDateInstance FormatStyle  style = DefaultFormatStyle  )  [inline, static]
 

RDateFormat acdk::text::DateFormat::getDateTimeInstance FormatStyle  dateStyle,
FormatStyle  timeStyle,
IN(::acdk::util::RLocale locale
[inline, static]
 

RDateFormat acdk::text::DateFormat::getDateTimeInstance FormatStyle  dateStyle = DefaultFormatStyle,
FormatStyle  timeStyle = DefaultFormatStyle
[inline, static]
 

RDateFormat acdk::text::DateFormat::getInstance  )  [inline, static]
 

bool acdk::text::DateFormat::getLenient  )  [inline]
 

RNumberFormat acdk::text::DateFormat::getNumberFormat  )  [inline]
 

RDateFormat acdk::text::DateFormat::getTimeInstance FormatStyle  style,
IN(::acdk::util::RLocale locale
[inline, static]
 

RDateFormat acdk::text::DateFormat::getTimeInstance FormatStyle  style = DefaultFormatStyle  )  [inline, static]
 

::acdk::util::RTimeZone acdk::text::DateFormat::getTimeZone  )  [inline]
 

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

See also:
serialized_hashCode

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::text::SimpleDateFormat.

virtual ::acdk::util::RDate acdk::text::DateFormat::parse IN(RString text,
IN(RParsePosition pos
[pure virtual]
 

Implemented in acdk::text::SimpleDateFormat.

::acdk::util::RDate acdk::text::DateFormat::parse IN(RString text  ) 
 

Reimplemented in acdk::text::SimpleDateFormat.

acdk::lang::Object acdk::text::DateFormat::parseObject IN(RString source,
IN(RParsePosition pos
[inline, virtual]
 

Implements acdk::text::Format.

void acdk::text::DateFormat::setCalendar IN(::acdk::util::RCalendar newCalendar  )  [inline]
 

void acdk::text::DateFormat::setLenient bool  lenient  )  [inline]
 

void acdk::text::DateFormat::setNumberFormat IN(RNumberFormat newNumberFormat  )  [inline]
 

void acdk::text::DateFormat::setTimeZone IN(::acdk::util::RTimeZone zone  )  [inline]
 


Member Data Documentation

::acdk::util::RCalendar acdk::text::DateFormat::_calendar [protected]
 

bool acdk::text::DateFormat::_lenient [private]
 

RNumberFormat acdk::text::DateFormat::_numberFormat [protected]
 

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