|
|
DateLayout Class ReferenceInheritance diagram for DateLayout:
[legend]Collaboration diagram for DateLayout:
[legend]List of all members.
Detailed Description
This abstract layout takes care of all the date related options and formatting work.
Member Function Documentation
void activateOptions |
( |
|
) |
[virtual] |
|
|
Activate the options that were previously set with calls to option setters.
This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.
For example, the FileAppender has the File and Append options both of which are ambigous until the other is also set.
Implements OptionHandler. |
const String& getDateFormat |
( |
|
) |
const [inline] |
|
const String& getTimeZone |
( |
|
) |
const [inline] |
|
|
Returns value of the TimeZone option. |
void setDateFormat |
( |
const String & |
dateFormatType, |
|
|
const TimeZonePtr & |
timeZone |
|
) |
[protected] |
|
void setDateFormat |
( |
const String & |
dateFormat |
) |
[inline] |
|
|
The value of the DateFormat option should be either an argument to the constructor of helpers::DateFormat or one of the srings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601. |
void setOption |
( |
const String & |
option, |
|
|
const String & |
value |
|
) |
[virtual] |
|
|
Set option to value .
The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when activateOptions is called.
Implements OptionHandler. |
void setTimeZone |
( |
const String & |
timeZone |
) |
[inline] |
|
|
The TimeZoneID option is a time zone ID string in the format expected by the locale C++ standard class. |
Member Data Documentation
|
String constant designating no time information. Current value of this constant is NULL. |
|
String constant designating relative time. Current value of this constant is RELATIVE. |
The documentation for this class was generated from the following files:
- datelayout.h
- datelayout.cpp
|
|
Copyright © 1999-2004, Apache Software Foundation
|