T - public class SetTypeAdapter<T> extends Object implements ReflectiveConfig.ConfigTypeAdapter<Set<T>,List<String>>
| Constructor and Description |
|---|
SetTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Set<T> |
deserialize(List<String> 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(Set<T> prev,
Set<T> curr,
ReflectiveConfig config,
ReflectiveConfig.ConfigWriter diffwriter,
Field field) |
List<String> |
read(ReflectiveConfig config,
ReflectiveConfig.ConfigReader reader,
Field field)
Reads an attribute from configuration into its serialized form
|
List<String> |
serialize(Set<T> obj,
ReflectiveConfig config,
Field field)
Constructs a serialized representation of an object
|
void |
write(List<String> serialized,
ReflectiveConfig config,
ReflectiveConfig.ConfigWriter writer,
Field field)
Writes the serialized representation to the configuration backend.
|
public void write(List<String> serialized, ReflectiveConfig config, ReflectiveConfig.ConfigWriter writer, Field field) throws ConfigurationException
ReflectiveConfig.ConfigTypeAdapterwrite in interface ReflectiveConfig.ConfigTypeAdapter<Set<T>,List<String>>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 List<String> serialize(Set<T> obj, ReflectiveConfig config, Field field) throws ConfigurationException
ReflectiveConfig.ConfigTypeAdapterserialize in interface ReflectiveConfig.ConfigTypeAdapter<Set<T>,List<String>>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 List<String> read(ReflectiveConfig config, ReflectiveConfig.ConfigReader reader, Field field) throws ConfigurationException
ReflectiveConfig.ConfigTypeAdapterread in interface ReflectiveConfig.ConfigTypeAdapter<Set<T>,List<String>>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.ConfigurationExceptionpublic Set<T> deserialize(List<String> serialized, ReflectiveConfig config, Field field) throws ConfigurationException
ReflectiveConfig.ConfigTypeAdapterdeserialize in interface ReflectiveConfig.ConfigTypeAdapter<Set<T>,List<String>>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 merge(Set<T> prev, Set<T> curr, ReflectiveConfig config, ReflectiveConfig.ConfigWriter diffwriter, Field field) throws ConfigurationException
merge in interface ReflectiveConfig.ConfigTypeAdapter<Set<T>,List<String>>ConfigurationExceptionpublic boolean isWritingChildren(Field field)
ReflectiveConfig.ConfigTypeAdapterisWritingChildren in interface ReflectiveConfig.ConfigTypeAdapter<Set<T>,List<String>>Copyright © 2014 dcm4che.org. All rights reserved.