public static class ISODateComponent.FieldComponent extends ISODateComponent
ISODateComponent.AliasComponent, ISODateComponent.AMPMComponent, ISODateComponent.EpochComponent, ISODateComponent.FieldComponent, ISODateComponent.LocaleDependentComponent, ISODateComponent.NotImplementedComponent, ISODateComponent.TextComponent, ISODateComponent.UTCOffsetComponent
Modifier and Type | Field and Description |
---|---|
protected int |
field |
protected String |
format |
protected int |
offset |
ABBREVIATED_MONTH_NAME, ABBREVIATED_MONTH_NAME_ALIAS, ABBREVIATED_WEEKDAY_NAME, AM_PM, CENTURY, DATE, DATE_ISO8601, DAY_OF_MONTH, DAY_OF_MONTH_2_DIGITS, DAY_OF_WEEK_0_6, DAY_OF_WEEK_1_7, DAY_OF_YEAR, directive, EPOCH, FULL_MONTH_NAME, FULL_WEEKDAY_NAME, HOUR, HOUR_AND_MINUTE, HOUR_OF_DAY, LOCALE_CLOCK_TIME_12_HOUR, LOCALE_DATE_AND_TIME, LOCALE_DATE_REPRESENTATION, LOCALE_TIME_REPRESENTATION, LOCALE_TIME_ZONE_NAME, MILLISECOND, MINUTE, MONTH, NEW_LINE, PERCENT, replace, SECOND, TABULATION, TIME_ISO8601, UTC_OFFSET, WEEK_BASED_YEAR_2_DIGITS, WEEK_BASED_YEAR_4_DIGITS, WEEK_NUMBER_ISO8601, WEEK_OF_YEAR_FROM_MONDAY, WEEK_OF_YEAR_FROM_SUNDAY, YEAR_2_DIGITS, YEAR_4_DIGITS
Constructor and Description |
---|
FieldComponent(String shortcut,
String replace,
int field,
int offset,
String format) |
FieldComponent(String shortcut,
String replace,
int field,
String format) |
Modifier and Type | Method and Description |
---|---|
String |
get(Calendar calendar)
Get a string representation of this component for a given calendar.
|
void |
set(String value,
Calendar calendar)
Handle the value catched with the replacement value.
|
getDirective, getReplacement, isAlias
public FieldComponent(String shortcut, String replace, int field, String format)
public FieldComponent(String shortcut, String replace, int field, int offset, String format)
public void set(String value, Calendar calendar)
ISODateComponent
set
in class ISODateComponent
value
- value matching the replacement stringcalendar
- calendar we are working onpublic String get(Calendar calendar)
ISODateComponent
get
in class ISODateComponent
calendar
- the calendarWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses