Conversion to the following old-style types is supported:
java.util.Date java.util.Calendar (a java.util.GregorianCalendar is returned)java.util.GregorianCalendar javax.xml.datatype.XMLGregorianCalendar java.sql.Date java.sql.Time java.sql.Timestamp Conversion to the following java.-style
types is supported:
java.time.temporal.TemporalAccessor . If this interface is
used, the actual type returned is not defined.java.time.chrono.ChronoLocalDate . If this interface is used, the
actual type returned is java.time.LocalDate .java.time.LocalDate java.time.chrono.ChronoLocalDateTime . If this interface is used,
the actual type returned is java.time.LocalDateTime .java.time.LocalDateTime java.time.chrono.ChronoZonedDateTime . If this interface is used,
the actual type returned is java.time.ZonedDateTime .java.time.ZonedDateTime java.time.temporal.Temporal . If this interface is used, the
actual type returned is not defined.java.time.chrono.Era . If this interface is used, the actual type
returned is java.time.chrono.IsoEra .java.time.chrono.IsoEra java.time.DayOfWeek java.time.chrono.HijrahDate java.time.chrono.HijrahEra java.time.Instant java.time.chrono.JapaneseDate java.time.chrono.JapaneseEra java.time.LocalTime java.time.chrono.MinguoDate java.time.chrono.MinguoEra java.time.Month java.time.MonthDay java.time.OffsetDateTime java.time.OffsetTime java.time.chrono.ThaiBuddhistDate java.time.chrono.ThaiBuddhistEra java.time.Year java.time.YearMonth java.time.ZoneOffset This annotation must be used with either com.
or com., otherwise it is ignored.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: Thejava. in useThe |
| public String[] | Returns: The names of the profiles this configuration is forA profile can be used to annotate the same field differently for different inputs or outputs. |
| public String | |
| public String | Returns: Thejava. in useThe |
| public boolean | Returns: Whether the read chronology is used for writing as wellWhether or not the same chronology string is used for writing as for reading. |
| public String | |
| public boolean | Returns: Whether the read format is used for writing as wellWhether or not the same format string is used for writing as for reading. |
| chronology | back to summary |
|---|---|
| public String chronology() The The value must be understood by
This value is only used for
The default value specifies the ISO-8601 chronology. If a blank
string or empty string is specified, the chronology is
| |
| profiles | back to summary |
|---|---|
| public String[] profiles() A profile can be used to annotate the same field differently for different inputs or outputs. Perhaps you have multiple input sources, and they all use different header names or positions for the same data. With profiles, you don't have to create different beans with the same fields and different annotations for each input. Simply annotate the same field multiple times and specify the profile when you parse the input. The same applies to output: if you want to be able to represent the same data in multiple CSV formats (that is, with different headers or orders), annotate the bean fields multiple times with different profiles and specify which profile you want to use on writing. Results are undefined if profile names are not unique. If the same configuration applies to multiple profiles, simply list all applicable profile names here. This parameter is an array of strings. The empty string, which is the default value, specifies the default profile and will be used if no annotation for the specific profile being used can be found, or if no profile is specified.
| |
| value | back to summary |
|---|---|
| public String value() A date/time format string.
If this annotation is applied to old-style dates and times, then this
must be a string understood by
| |
| writeChronology | back to summary |
|---|---|
| public String writeChronology() The
| |
| writeChronologyEqualsReadChronology | back to summary |
|---|---|
| public boolean writeChronologyEqualsReadChronology() Whether or not the same chronology string is used for writing as for
reading.
If this is true,
| |
| writeFormat | back to summary |
|---|---|
| public String writeFormat() A date/time format string.
| |
| writeFormatEqualsReadFormat | back to summary |
|---|---|
| public boolean writeFormatEqualsReadFormat() Whether or not the same format string is used for writing as for reading.
If this is true,
| |