| Modifier and Type | Interface and Description |
|---|---|
static class |
ConditionalConverter.MatchResult |
| Modifier and Type | Method and Description |
|---|---|
ConditionalConverter.MatchResult |
match(Class<?> sourceType,
Class<?> destinationType)
Determines whether the converter matches and supports conversion from
sourceType to
destinationType. |
ConditionalConverter.MatchResult match(Class<?> sourceType, Class<?> destinationType)
sourceType to
destinationType.
In the case of a partial match, the converter is indicating that it does not recognise the
source type but that it may still be capable performing the conversion implicitly by parsing the
result of calling Object.toString() or by some other means which similarly does not
require knowledge of the type at compile time.
Implicit conversion may result in conversions which are susceptible to unexpected failure when
property types or formats change. Conversion of properties with partially matched types can be
disabled via Configuration.setFullTypeMatchingRequired(boolean).
sourceType - to matchdestinationType - to matchConditionalConverter.MatchResult.FULL if sourceType and destinationType are
matchedConditionalConverter.MatchResult.PARTIAL if destinationType is matchedConditionalConverter.MatchResult.NONE if destinationType is not matchedCopyright © 2011–2018. All rights reserved.