public class DateOptionPropertyAdapter extends ValueOptionPropertyAdapter<DateOption>
PropertyAdapter
for DateOption
.Modifier and Type | Class and Description |
---|---|
static class |
DateOptionPropertyAdapter.Builder
A builder for
DateOptionPropertyAdapter . |
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 format.
|
DEFAULT_NULL_STYLE
Modifier | Constructor and Description |
---|---|
protected |
DateOptionPropertyAdapter(DateOptionPropertyAdapter.Builder builder)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static DateOptionPropertyAdapter.Builder |
builder()
Returns a new builder.
|
protected void |
doRead(ValueReader reader,
DateOption property)
Reads a value and set it into the given property.
|
protected void |
doWrite(DateOption property,
ValueWriter writer)
Writes a value from the given property.
|
absent, read, write
public static final String DEFAULT_FORMAT
protected DateOptionPropertyAdapter(DateOptionPropertyAdapter.Builder builder)
builder
- the source builderpublic static DateOptionPropertyAdapter.Builder builder()
protected void doRead(ValueReader reader, DateOption property) throws IOException
ValueOptionPropertyAdapter
doRead
in class ValueOptionPropertyAdapter<DateOption>
reader
- the source reader, never holds null
property
- the destination propertyIOException
- IOException if I/O error was occurredprotected void doWrite(DateOption property, ValueWriter writer) throws IOException
ValueOptionPropertyAdapter
doWrite
in class ValueOptionPropertyAdapter<DateOption>
property
- the source property, never holds null
writer
- the destination writerIOException
- if I/O error was occurredCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.