public interface ValueConverter<S,T>
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.
|
S |
convertToSourceType(Object value)
Converts the given target value to the source type.
|
T |
convertToTargetType(Object value)
Converts the given source value to the target type.
|
String |
getName()
The name of the converter.
|
Class<S> |
getSourceType()
Returns the type of source values that the converter can handle.
|
Class<T> |
getTargetType()
Returns the type of target values that the converter can handle.
|
String getName()
Class<S> getSourceType()
Class<T> getTargetType()
boolean acceptsSourceValue(Object value)
value
- the candidate source valueboolean acceptsTargetValue(Object value)
value
- the candidate target valueT convertToTargetType(Object value)
value
- the source value to convertCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.