2005/5/9

     
 

class Calendar

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

acdk::util::Calendar Class Reference

#include <Calendar.h>

Inheritance diagram for acdk::util::Calendar:

acdk::lang::Object acdk::io::Serializable acdk::lang::Cloneable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::util::GregorianCalendar acdk::util::SimpleCalendar List of all members.

Detailed Description

API: Java<br/>.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.11
Date:
Date
2005/04/09 19:26:56
Bug:
only partly implemented


Public Member Functions

virtual ~Calendar ()
RDate getTime ()
void setTime (IN(RDate) date)
int get (int field)
void set (int field, int value)
void set (int year, int month, int date)
void set (int year, int month, int date, int hour, int minute)
void set (int year, int month, int date, int hour, int minute, int second, int millisecond=0)
void clear ()
void clear (int field)
bool isSet (int field)
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.

int hashCode ()
bool before (IN(acdk::lang::Object) obj)
bool after (IN(acdk::lang::Object) obj)
virtual void add (int field, int amount)=0
virtual void roll (int field, bool up)=0
void roll (int field, int amount)
void setTimeZone (RTimeZone zone)
RTimeZone getTimeZone ()
void setLenient (bool lenient)
bool getLenient ()
void setFirstDayOfWeek (int day)
int getFirstDayOfWeek ()
void setMinimalDaysInFirstWeek (int value)
int getMinimalDaysInFirstWeek ()
virtual int getMinimum (int field)=0
virtual int getMaximum (int max)=0
virtual int getGreatestMinimum (int field)=0
virtual int getLeastMaximum (int field)=0
int getActualMinimum (int field)
int getActualMaximum (int field)
bool isLenient ()
virtual acdk::lang::Object clone ()
virtual acdk::lang::Object clone (sys::Allocator *alc)
RString toString ()
 return a string representation of this object Object::toString() return getName() by default

virtual void computeTime ()=0
virtual void computeFields ()=0
jlong getTimeInMillis ()
void setTimeInMillis (jlong millis)
int internalGet (int field)
void internalSet (int field, int value)
void complete ()

Static Public Member Functions

RHashtable get_cachedLocaleData ()
RCalendar getInstance ()
RCalendar getInstance (IN(RTimeZone) zone)
RCalendar getInstance (IN(RLocale) locale)
RCalendar getInstance (IN(RTimeZone) zone, IN(RLocale) locale)
RLocaleArray getAvailableLocales ()

Static Public Attributes

int ERA
int YEAR
int MONTH
int WEEK_OF_YEAR
int WEEK_OF_MONTH
int DATE
int DAY_OF_MONTH
int DAY_OF_YEAR
int DAY_OF_WEEK
int DAY_OF_WEEK_IN_MONTH
int AM_PM
int HOUR
int HOUR_OF_DAY
int MINUTE
int SECOND
int MILLISECOND
int ZONE_OFFSET
int DST_OFFSET
int FIELD_COUNT
int SUNDAY
int MONDAY
int TUESDAY
int WEDNESDAY
int THURSDAY
int FRIDAY
int SATURDAY
int JANUARY
int FEBRUARY
int MARCH
int APRIL
int MAY
int JUNE
int JULY
int AUGUST
int SEPTEMBER
int OCTOBER
int NOVEMBER
int DECEMBER
int UNDECIMBER
int AM
int PM

Protected Member Functions

 Calendar ()
 Calendar (IN(RTimeZone) zone, IN(RLocale) locale)

Protected Attributes

RintArray _fields
RboolArray _isSet
jlong _time
bool _isTimeSet
bool _areFieldsSet
bool _areAllFieldsSet

Private Attributes

transient RintArray _stamp
bool _lenient
RTimeZone _zone
int _firstDayOfWeek
int _minimalDaysInFirstWeek
int _nextStamp

Static Private Attributes

RHashtable _cachedLocaleData
int UNSET
int INTERNALLY_SET
int MINIMUM_USER_STAMP


Constructor & Destructor Documentation

virtual acdk::util::Calendar::~Calendar  )  [virtual]
 

acdk::util::Calendar::Calendar  )  [protected]
 

acdk::util::Calendar::Calendar IN(RTimeZone zone,
IN(RLocale locale
[protected]
 


Member Function Documentation

virtual void acdk::util::Calendar::add int  field,
int  amount
[pure virtual]
 

Implemented in acdk::util::GregorianCalendar.

bool acdk::util::Calendar::after IN(acdk::lang::Object obj  ) 
 

bool acdk::util::Calendar::before IN(acdk::lang::Object obj  ) 
 

void acdk::util::Calendar::clear int  field  ) 
 

void acdk::util::Calendar::clear  ) 
 

virtual acdk::lang::Object acdk::util::Calendar::clone sys::Allocator *  alc  )  [virtual]
 

Reimplemented from acdk::lang::Cloneable.

virtual acdk::lang::Object acdk::util::Calendar::clone  )  [inline, virtual]
 

Implements acdk::lang::Cloneable.

void acdk::util::Calendar::complete  ) 
 

virtual void acdk::util::Calendar::computeFields  )  [pure virtual]
 

Implemented in acdk::util::GregorianCalendar.

virtual void acdk::util::Calendar::computeTime  )  [pure virtual]
 

Implemented in acdk::util::GregorianCalendar.

bool acdk::util::Calendar::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::util::GregorianCalendar, and acdk::util::SimpleCalendar.

int acdk::util::Calendar::get int  field  )  [inline]
 

RHashtable acdk::util::Calendar::get_cachedLocaleData  )  [static]
 

int acdk::util::Calendar::getActualMaximum int  field  ) 
 

Reimplemented in acdk::util::GregorianCalendar.

int acdk::util::Calendar::getActualMinimum int  field  ) 
 

Reimplemented in acdk::util::GregorianCalendar.

RLocaleArray acdk::util::Calendar::getAvailableLocales  )  [static]
 

int acdk::util::Calendar::getFirstDayOfWeek  )  [inline]
 

virtual int acdk::util::Calendar::getGreatestMinimum int  field  )  [pure virtual]
 

Implemented in acdk::util::GregorianCalendar.

RCalendar acdk::util::Calendar::getInstance IN(RTimeZone zone,
IN(RLocale locale
[static]
 

RCalendar acdk::util::Calendar::getInstance IN(RLocale locale  )  [static]
 

RCalendar acdk::util::Calendar::getInstance IN(RTimeZone zone  )  [static]
 

RCalendar acdk::util::Calendar::getInstance  )  [static]
 

virtual int acdk::util::Calendar::getLeastMaximum int  field  )  [pure virtual]
 

Implemented in acdk::util::GregorianCalendar.

bool acdk::util::Calendar::getLenient  )  [inline]
 

virtual int acdk::util::Calendar::getMaximum int  max  )  [pure virtual]
 

Implemented in acdk::util::GregorianCalendar.

int acdk::util::Calendar::getMinimalDaysInFirstWeek  )  [inline]
 

virtual int acdk::util::Calendar::getMinimum int  field  )  [pure virtual]
 

Implemented in acdk::util::GregorianCalendar.

RDate acdk::util::Calendar::getTime  )  [inline]
 

jlong acdk::util::Calendar::getTimeInMillis  )  [inline]
 

RTimeZone acdk::util::Calendar::getTimeZone  )  [inline]
 

int acdk::util::Calendar::hashCode  )  [virtual]
 

See also:
serialized_hashCode

Reimplemented from acdk::lang::Object.

int acdk::util::Calendar::internalGet int  field  )  [inline]
 

void acdk::util::Calendar::internalSet int  field,
int  value
[inline]
 

bool acdk::util::Calendar::isLenient  )  [inline]
 

bool acdk::util::Calendar::isSet int  field  ) 
 

void acdk::util::Calendar::roll int  field,
int  amount
 

virtual void acdk::util::Calendar::roll int  field,
bool  up
[pure virtual]
 

Implemented in acdk::util::GregorianCalendar.

void acdk::util::Calendar::set int  year,
int  month,
int  date,
int  hour,
int  minute,
int  second,
int  millisecond = 0
 

void acdk::util::Calendar::set int  year,
int  month,
int  date,
int  hour,
int  minute
 

void acdk::util::Calendar::set int  year,
int  month,
int  date
 

void acdk::util::Calendar::set int  field,
int  value
 

void acdk::util::Calendar::setFirstDayOfWeek int  day  )  [inline]
 

void acdk::util::Calendar::setLenient bool  lenient  )  [inline]
 

void acdk::util::Calendar::setMinimalDaysInFirstWeek int  value  )  [inline]
 

void acdk::util::Calendar::setTime IN(RDate date  )  [inline]
 

void acdk::util::Calendar::setTimeInMillis jlong  millis  ) 
 

void acdk::util::Calendar::setTimeZone RTimeZone  zone  )  [inline]
 

RString acdk::util::Calendar::toString  )  [virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.


Member Data Documentation

bool acdk::util::Calendar::_areAllFieldsSet [protected]
 

bool acdk::util::Calendar::_areFieldsSet [protected]
 

RHashtable acdk::util::Calendar::_cachedLocaleData [static, private]
 

RintArray acdk::util::Calendar::_fields [protected]
 

int acdk::util::Calendar::_firstDayOfWeek [private]
 

RboolArray acdk::util::Calendar::_isSet [protected]
 

bool acdk::util::Calendar::_isTimeSet [protected]
 

bool acdk::util::Calendar::_lenient [private]
 

int acdk::util::Calendar::_minimalDaysInFirstWeek [private]
 

int acdk::util::Calendar::_nextStamp [private]
 

transient RintArray acdk::util::Calendar::_stamp [private]
 

jlong acdk::util::Calendar::_time [protected]
 

RTimeZone acdk::util::Calendar::_zone [private]
 

int acdk::util::Calendar::AM [static]
 

int acdk::util::Calendar::AM_PM [static]
 

int acdk::util::Calendar::APRIL [static]
 

int acdk::util::Calendar::AUGUST [static]
 

int acdk::util::Calendar::DATE [static]
 

int acdk::util::Calendar::DAY_OF_MONTH [static]
 

int acdk::util::Calendar::DAY_OF_WEEK [static]
 

int acdk::util::Calendar::DAY_OF_WEEK_IN_MONTH [static]
 

int acdk::util::Calendar::DAY_OF_YEAR [static]
 

int acdk::util::Calendar::DECEMBER [static]
 

int acdk::util::Calendar::DST_OFFSET [static]
 

int acdk::util::Calendar::ERA [static]
 

int acdk::util::Calendar::FEBRUARY [static]
 

int acdk::util::Calendar::FIELD_COUNT [static]
 

int acdk::util::Calendar::FRIDAY [static]
 

int acdk::util::Calendar::HOUR [static]
 

int acdk::util::Calendar::HOUR_OF_DAY [static]
 

int acdk::util::Calendar::INTERNALLY_SET [static, private]
 

int acdk::util::Calendar::JANUARY [static]
 

int acdk::util::Calendar::JULY [static]
 

int acdk::util::Calendar::JUNE [static]
 

int acdk::util::Calendar::MARCH [static]
 

int acdk::util::Calendar::MAY [static]
 

int acdk::util::Calendar::MILLISECOND [static]
 

int acdk::util::Calendar::MINIMUM_USER_STAMP [static, private]
 

int acdk::util::Calendar::MINUTE [static]
 

int acdk::util::Calendar::MONDAY [static]
 

int acdk::util::Calendar::MONTH [static]
 

int acdk::util::Calendar::NOVEMBER [static]
 

int acdk::util::Calendar::OCTOBER [static]
 

int acdk::util::Calendar::PM [static]
 

int acdk::util::Calendar::SATURDAY [static]
 

int acdk::util::Calendar::SECOND [static]
 

int acdk::util::Calendar::SEPTEMBER [static]
 

int acdk::util::Calendar::SUNDAY [static]
 

int acdk::util::Calendar::THURSDAY [static]
 

int acdk::util::Calendar::TUESDAY [static]
 

int acdk::util::Calendar::UNDECIMBER [static]
 

int acdk::util::Calendar::UNSET [static, private]
 

int acdk::util::Calendar::WEDNESDAY [static]
 

int acdk::util::Calendar::WEEK_OF_MONTH [static]
 

int acdk::util::Calendar::WEEK_OF_YEAR [static]
 

int acdk::util::Calendar::YEAR [static]
 

int acdk::util::Calendar::ZONE_OFFSET [static]