|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.AttributedCharacterIterator.Attribute
java.text.Format.Field
java.text.DateFormat.Field
public static class DateFormat.Field
The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that SimpleDateFormat.formatToCharacterIterator() method returns.
There is no public constructor to this class, the only instances are the constants defined here.
| Field Summary | |
|---|---|
static DateFormat.Field |
AM_PM
Marks the time indicator part of a date. |
static DateFormat.Field |
DAY_OF_MONTH
Marks the day of the month part of a date. |
static DateFormat.Field |
DAY_OF_WEEK
Marks the day of the week part of a date. |
static DateFormat.Field |
DAY_OF_WEEK_IN_MONTH
Marks the day of the week in the month part of a date. |
static DateFormat.Field |
DAY_OF_YEAR
Marks the day of the year part of a date. |
static DateFormat.Field |
ERA
Marks the era part of a date. |
static DateFormat.Field |
HOUR_OF_DAY0
Marks the hour of the day part of a date (0-11). |
static DateFormat.Field |
HOUR_OF_DAY1
Marks the hour of the day part of a date (1-12). |
static DateFormat.Field |
HOUR0
Marks the hour part of a date (0-11). |
static DateFormat.Field |
HOUR1
Marks the hour part of a date (1-12). |
static DateFormat.Field |
MILLISECOND
Marks the millisecond part of a time. |
static DateFormat.Field |
MINUTE
Marks the minute part of a time. |
static DateFormat.Field |
MONTH
Marks the month part of a date. |
static DateFormat.Field |
SECOND
Marks the second part of a time. |
static DateFormat.Field |
TIME_ZONE
Marks the time zone part of a date. |
static DateFormat.Field |
WEEK_OF_MONTH
Marks the week of the month part of a date. |
static DateFormat.Field |
WEEK_OF_YEAR
Marks the week of the year part of a date. |
static DateFormat.Field |
YEAR
Marks the year part of a date. |
| Fields inherited from class java.text.AttributedCharacterIterator.Attribute |
|---|
INPUT_METHOD_SEGMENT, LANGUAGE, READING |
| Constructor Summary | |
|---|---|
protected |
DateFormat.Field(String fieldName,
int calendarField)
Constructs a new instance of DateFormat.Field with the given fieldName and calendar field. |
| Method Summary | |
|---|---|
int |
getCalendarField()
Returns the Calendar field this Field represents |
static DateFormat.Field |
ofCalendarField(int calendarField)
Returns the DateFormat.Field instance for the given calendar field |
protected Object |
readResolve()
Serialization method resolve instances to the constant DateFormat.Field values |
| Methods inherited from class java.text.AttributedCharacterIterator.Attribute |
|---|
equals, getName, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DateFormat.Field ERA
public static final DateFormat.Field YEAR
public static final DateFormat.Field MONTH
public static final DateFormat.Field HOUR_OF_DAY0
public static final DateFormat.Field HOUR_OF_DAY1
public static final DateFormat.Field MINUTE
public static final DateFormat.Field SECOND
public static final DateFormat.Field MILLISECOND
public static final DateFormat.Field DAY_OF_WEEK
public static final DateFormat.Field DAY_OF_MONTH
public static final DateFormat.Field DAY_OF_YEAR
public static final DateFormat.Field DAY_OF_WEEK_IN_MONTH
public static final DateFormat.Field WEEK_OF_YEAR
public static final DateFormat.Field WEEK_OF_MONTH
public static final DateFormat.Field AM_PM
public static final DateFormat.Field HOUR0
public static final DateFormat.Field HOUR1
public static final DateFormat.Field TIME_ZONE
| Constructor Detail |
|---|
protected DateFormat.Field(String fieldName,
int calendarField)
fieldName - The field name.calendarField - the calender field type of the field.| Method Detail |
|---|
public int getCalendarField()
public static DateFormat.Field ofCalendarField(int calendarField)
calendarField - a calendar field constant
protected Object readResolve()
throws InvalidObjectException
readResolve in class AttributedCharacterIterator.AttributeInvalidObjectException
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||