public final class IdConverter extends BaseValueConverter<Id,String>
Constructor and Description |
---|
IdConverter(Map<Class<? extends Id>,Type> idToType) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsSourceValue(Object value)
Returns true if the converter knows how to convert the given source value to the target type.
|
boolean |
acceptsTargetValue(Object value)
Returns true if the converter knows how to convert the given target value to the source type.
|
protected Id |
convertToSourceTypeNullSafe(Object value) |
protected String |
convertToTargetTypeNullSafe(Object value) |
convertToSourceType, convertToTargetType, getName, getSourceType, getTargetType
public boolean acceptsSourceValue(Object value)
ValueConverter
acceptsSourceValue
in interface ValueConverter<Id,String>
acceptsSourceValue
in class BaseValueConverter<Id,String>
value
- the candidate source valueprotected String convertToTargetTypeNullSafe(Object value)
convertToTargetTypeNullSafe
in class BaseValueConverter<Id,String>
public boolean acceptsTargetValue(Object value)
ValueConverter
acceptsTargetValue
in interface ValueConverter<Id,String>
acceptsTargetValue
in class BaseValueConverter<Id,String>
value
- the candidate target valueprotected Id convertToSourceTypeNullSafe(Object value)
convertToSourceTypeNullSafe
in class BaseValueConverter<Id,String>
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.