public abstract class ISODateComponent
extends java.lang.Object
ISODateIO
.Modifier and Type | Class and Description |
---|---|
static class |
ISODateComponent.AliasComponent
Defines an alias component.
|
static class |
ISODateComponent.AMPMComponent
Component handling AM/PM.
|
static class |
ISODateComponent.EpochComponent
Component handling a number of milliseconds since the epoch (january, 1st
1970).
|
static class |
ISODateComponent.FieldComponent
Defines a component associated with a field of a calendar.
|
static class |
ISODateComponent.NotImplementedComponent
Defines a not implemented component.
|
static class |
ISODateComponent.TextComponent
Defines a text component.
|
static class |
ISODateComponent.UTCOffsetComponent
Component handling utc offset (+/- 0000).
|
Constructor and Description |
---|
ISODateComponent(java.lang.String directive,
java.lang.String replace)
Build a new component composed of a directive name ("%.") and a replacement
value.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
get(java.util.Calendar calendar)
Get a string representation of this component for a given calendar.
|
java.lang.String |
getDirective()
Access to the directive name of the component.
|
java.lang.String |
getReplacement()
Get the replacement value of this component.
|
boolean |
isAlias()
Return true if this component is an alias.
|
abstract void |
set(java.lang.String value,
java.util.Calendar calendar)
Handle the value catched with the replacement value.
|
public static final ISODateComponent ABBREVIATED_WEEKDAY_NAME
public static final ISODateComponent FULL_WEEKDAY_NAME
public static final ISODateComponent ABBREVIATED_MONTH_NAME
public static final ISODateComponent FULL_MONTH_NAME
public static final ISODateComponent LOCALE_DATE_AND_TIME
public static final ISODateComponent CENTURY
public static final ISODateComponent DAY_OF_MONTH_2_DIGITS
public static final ISODateComponent DATE
public static final ISODateComponent DAY_OF_MONTH
public static final ISODateComponent DATE_ISO8601
public static final ISODateComponent WEEK_BASED_YEAR_2_DIGITS
public static final ISODateComponent WEEK_BASED_YEAR_4_DIGITS
public static final ISODateComponent ABBREVIATED_MONTH_NAME_ALIAS
public static final ISODateComponent HOUR_OF_DAY
public static final ISODateComponent HOUR
public static final ISODateComponent DAY_OF_YEAR
public static final ISODateComponent MILLISECOND
public static final ISODateComponent EPOCH
public static final ISODateComponent MONTH
public static final ISODateComponent MINUTE
public static final ISODateComponent NEW_LINE
public static final ISODateComponent AM_PM
public static final ISODateComponent LOCALE_CLOCK_TIME_12_HOUR
public static final ISODateComponent HOUR_AND_MINUTE
public static final ISODateComponent SECOND
public static final ISODateComponent TABULATION
public static final ISODateComponent TIME_ISO8601
public static final ISODateComponent DAY_OF_WEEK_1_7
public static final ISODateComponent WEEK_OF_YEAR_FROM_SUNDAY
public static final ISODateComponent WEEK_NUMBER_ISO8601
public static final ISODateComponent DAY_OF_WEEK_0_6
public static final ISODateComponent WEEK_OF_YEAR_FROM_MONDAY
public static final ISODateComponent LOCALE_DATE_REPRESENTATION
public static final ISODateComponent LOCALE_TIME_REPRESENTATION
public static final ISODateComponent YEAR_2_DIGITS
public static final ISODateComponent YEAR_4_DIGITS
public static final ISODateComponent UTC_OFFSET
public static final ISODateComponent LOCALE_TIME_ZONE_NAME
public static final ISODateComponent PERCENT
public ISODateComponent(java.lang.String directive, java.lang.String replace)
directive
- directive name, should start with a leading '%'.replace
- replace the directive with the value given here.public java.lang.String getDirective()
public boolean isAlias()
public java.lang.String getReplacement()
public abstract void set(java.lang.String value, java.util.Calendar calendar)
value
- value matching the replacement stringcalendar
- calendar we are working onpublic abstract java.lang.String get(java.util.Calendar calendar)
calendar
- the calendar