public abstract static class DefaultConfigTypeAdapters.PrimitiveAbstractTypeAdapter<T> extends Object implements ReflectiveConfig.ConfigTypeAdapter<T,T>
| Constructor and Description |
|---|
DefaultConfigTypeAdapters.PrimitiveAbstractTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(T serialized,
ReflectiveConfig config,
Field field)
Constructs an object from its serialized form
|
boolean |
isWritingChildren(Field field)
Should indicate whether the specified field will generate a child when writing configuration
|
void |
merge(T prev,
T curr,
ReflectiveConfig config,
ReflectiveConfig.ConfigWriter diffwriter,
Field field) |
T |
serialize(T obj,
ReflectiveConfig config,
Field field)
Constructs a serialized representation of an object
|
void |
write(T serialized,
ReflectiveConfig config,
ReflectiveConfig.ConfigWriter writer,
Field field)
Writes the serialized representation to the configuration backend.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic DefaultConfigTypeAdapters.PrimitiveAbstractTypeAdapter()
public boolean isWritingChildren(Field field)
ReflectiveConfig.ConfigTypeAdapterisWritingChildren in interface ReflectiveConfig.ConfigTypeAdapter<T,T>public T deserialize(T serialized, ReflectiveConfig config, Field field) throws ConfigurationException
ReflectiveConfig.ConfigTypeAdapterdeserialize in interface ReflectiveConfig.ConfigTypeAdapter<T,T>config - ReflectiveConfig that can be used e.g. to retrieve
DicomConfiguration Can be null!field - Config field. Can be used to read additional annotations,
check type, etc.ConfigurationExceptionpublic T serialize(T obj, ReflectiveConfig config, Field field) throws ConfigurationException
ReflectiveConfig.ConfigTypeAdapterserialize in interface ReflectiveConfig.ConfigTypeAdapter<T,T>config - ReflectiveConfig that can be used e.g. to retrieve
DicomConfiguration Can be null!field - Config field. Can be used to read additional annotations,
check type, etc.ConfigurationExceptionpublic void write(T serialized, ReflectiveConfig config, ReflectiveConfig.ConfigWriter writer, Field field) throws ConfigurationException
ReflectiveConfig.ConfigTypeAdapterwrite in interface ReflectiveConfig.ConfigTypeAdapter<T,T>config - ReflectiveConfig that can be used e.g. to retrieve
DicomConfiguration Can be null!writer - ConfigWriter to usefield - Config field. Can be used to read additional annotations,
check type, etc.ConfigurationExceptionpublic void merge(T prev, T curr, ReflectiveConfig config, ReflectiveConfig.ConfigWriter diffwriter, Field field) throws ConfigurationException
merge in interface ReflectiveConfig.ConfigTypeAdapter<T,T>ConfigurationExceptionCopyright © 2014 dcm4che.org. All Rights Reserved.