T - Java classST - Serialized representation - this intermediate format is needed
for merging, so only the actual config data is used.public static interface ReflectiveConfig.ConfigTypeAdapter<T,ST>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(ST 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) |
ST |
read(ReflectiveConfig config,
ReflectiveConfig.ConfigReader reader,
Field field)
Reads an attribute from configuration into its serialized form
|
ST |
serialize(T obj,
ReflectiveConfig config,
Field field)
Constructs a serialized representation of an object
|
void |
write(ST serialized,
ReflectiveConfig config,
ReflectiveConfig.ConfigWriter writer,
Field field)
Writes the serialized representation to the configuration backend.
|
void write(ST serialized, ReflectiveConfig config, ReflectiveConfig.ConfigWriter writer, Field field) throws ConfigurationException
obj - 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.ConfigurationExceptionST serialize(T obj, ReflectiveConfig config, Field field) throws ConfigurationException
obj - 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.ConfigurationExceptionST read(ReflectiveConfig config, ReflectiveConfig.ConfigReader reader, Field field) throws ConfigurationException
str - config - ReflectiveConfig that can be used e.g. to retrieve
DicomConfiguration Can be null!reader - ConfigReader to usefield - Config field. Can be used to read additional annotations,
check type, etc.ConfigurationExceptionNamingExceptionT deserialize(ST serialized, ReflectiveConfig config, Field field) throws ConfigurationException
serialized - 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.ConfigurationExceptionvoid merge(T prev, T curr, ReflectiveConfig config, ReflectiveConfig.ConfigWriter diffwriter, Field field) throws ConfigurationException
ConfigurationExceptionboolean isWritingChildren(Field field)
field - Copyright © 2014 dcm4che.org. All rights reserved.