T
- the property typepublic interface PropertyAdapter<T>
Modifier and Type | Method and Description |
---|---|
void |
absent(T property)
Sets "absent" value into the given property.
|
void |
read(ValueReader reader,
T property)
Reads a value and set it into the given property.
|
void |
write(T property,
ValueWriter writer)
Writes a value from the given property.
|
void absent(T property)
property
- the destination propertyRuntimeException
- if "absent" is not a suitable for the destination property (may not recoverable)void read(ValueReader reader, T property) throws IOException
reader
- the source readerproperty
- the destination propertyIOException
- IOException if I/O error was occurredRuntimeException
- if the property value is not a suitable for the destination propertyvoid write(T property, ValueWriter writer) throws IOException
property
- the source propertywriter
- the destination writerIOException
- if I/O error was occurredCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.