public class StandardAttributeHandling extends Object implements AttributeHandling
| Modifier and Type | Field and Description |
|---|---|
static List<Class<? extends Object>> |
DEFAULT_REGISTRATIONS |
| Constructor and Description |
|---|
StandardAttributeHandling() |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
convert(Class<V> datatype,
Object value)
Converts the given (not-null) value to the this datatype V.
|
protected <V> AttributeSerializer<V> |
getSerializer(Class<V> datatype) |
boolean |
isOrderPreservingDatatype(Class<?> datatype) |
<V> void |
registerClass(Class<V> datatype,
AttributeHandler<V> handler) |
<V> void |
verifyAttribute(Class<V> datatype,
Object value) |
public <V> void registerClass(Class<V> datatype, AttributeHandler<V> handler)
registerClass in interface AttributeHandlingpublic <V> void verifyAttribute(Class<V> datatype, Object value)
verifyAttribute in interface AttributeHandlingpublic <V> V convert(Class<V> datatype, Object value)
AttributeHandlingIllegalArgumentException if it cannot be converted.convert in interface AttributeHandlingvalue - to convertpublic boolean isOrderPreservingDatatype(Class<?> datatype)
isOrderPreservingDatatype in interface AttributeHandlingprotected <V> AttributeSerializer<V> getSerializer(Class<V> datatype)
Copyright © 2012–2014. All rights reserved.