public class DateTimeOptionPropertyAdapter extends ValueOptionPropertyAdapter<DateTimeOption>
PropertyAdapter for DateTimeOption.| Modifier and Type | Class and Description |
|---|---|
static class |
DateTimeOptionPropertyAdapter.Builder
A builder for
DateTimeOptionPropertyAdapter. |
ValueOptionPropertyAdapter.BuilderBase<S extends ValueOptionPropertyAdapter.BuilderBase<S,T>,T extends PropertyAdapter<?>>, ValueOptionPropertyAdapter.NullStyle| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FORMAT
The default value of date-time format.
|
DEFAULT_NULL_STYLE| Modifier | Constructor and Description |
|---|---|
protected |
DateTimeOptionPropertyAdapter(DateTimeOptionPropertyAdapter.Builder builder)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static DateTimeOptionPropertyAdapter.Builder |
builder()
Returns a new builder.
|
protected void |
doRead(ValueReader reader,
DateTimeOption property)
Reads a value and set it into the given property.
|
protected void |
doWrite(DateTimeOption property,
ValueWriter writer)
Writes a value from the given property.
|
absent, read, writepublic static final String DEFAULT_FORMAT
protected DateTimeOptionPropertyAdapter(DateTimeOptionPropertyAdapter.Builder builder)
builder - the source builderpublic static DateTimeOptionPropertyAdapter.Builder builder()
protected void doRead(ValueReader reader, DateTimeOption property) throws IOException
ValueOptionPropertyAdapterdoRead in class ValueOptionPropertyAdapter<DateTimeOption>reader - the source reader, never holds nullproperty - the destination propertyIOException - IOException if I/O error was occurredprotected void doWrite(DateTimeOption property, ValueWriter writer) throws IOException
ValueOptionPropertyAdapterdoWrite in class ValueOptionPropertyAdapter<DateTimeOption>property - the source property, never holds nullwriter - the destination writerIOException - if I/O error was occurredCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.