| Package | Description |
|---|---|
| net.stickycode.coercion | |
| net.stickycode.coercion.target |
| Modifier and Type | Method and Description |
|---|---|
CoercionTarget[] |
CoercionTarget.getComponentCoercionTypes()
Return the
CoercionTargets for the components. |
CoercionTarget |
CoercionTarget.getParent() |
| Modifier and Type | Method and Description |
|---|---|
T |
Coercion.coerce(CoercionTarget type,
String value)
Coerce the given string value into the type represented by this coercion.
|
<T> Coercion<T> |
CoercionFinder.find(CoercionTarget target)
Find a coercion for the given target.
|
T |
Coercion.getDefaultValue(CoercionTarget target)
In the case where there is not value already set and a String value for coercion cannot be found then this will be used.
|
boolean |
Coercion.isApplicableTo(CoercionTarget target)
Return true if this coercion is applicable for the given target type
|
| Constructor and Description |
|---|
CoercionNotFoundException(CoercionTarget target,
Collection<Coercion> coercions) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCoercionTarget |
class |
ArrayCoercionTarget |
class |
ParameterizedArrayCoercionTarget |
class |
ParameterizedCoercionTarget |
class |
PrimitiveResolvingCoercionTarget |
| Modifier and Type | Field and Description |
|---|---|
protected CoercionTarget |
AbstractCoercionTarget.parent |
| Modifier and Type | Method and Description |
|---|---|
static CoercionTarget |
CoercionTargets.find(Class<?> type) |
static CoercionTarget |
CoercionTargets.find(Class<?> type,
Type genericType) |
static CoercionTarget |
CoercionTargets.find(Field f) |
static CoercionTarget |
CoercionTargets.find(Field f,
CoercionTarget parent) |
static CoercionTarget |
CoercionTargets.find(Method m) |
static CoercionTarget |
CoercionTargets.find(Type genericType,
Class<?> owner,
String name) |
CoercionTarget[] |
ArrayCoercionTarget.getComponentCoercionTypes() |
CoercionTarget[] |
ParameterizedArrayCoercionTarget.getComponentCoercionTypes() |
CoercionTarget[] |
ParameterizedCoercionTarget.getComponentCoercionTypes() |
CoercionTarget[] |
AbstractCoercionTarget.getComponentCoercionTypes() |
CoercionTarget |
ParameterizedArrayCoercionTarget.getParent() |
CoercionTarget |
AbstractCoercionTarget.getParent() |
| Modifier and Type | Method and Description |
|---|---|
static CoercionTarget |
CoercionTargets.find(Field f,
CoercionTarget parent) |
| Constructor and Description |
|---|
AbstractCoercionTarget(Class<?> type,
Class<?> owner,
CoercionTarget parent,
String name) |
ArrayCoercionTarget(Class<?> type,
Class<?> owner,
CoercionTarget parent,
String name) |
ParameterizedArrayCoercionTarget(GenericArrayType genericType,
Class<?> owner,
CoercionTarget parent,
String name) |
ParameterizedCoercionTarget(ParameterizedType genericType,
AnnotatedElement element,
Class<?> owner,
CoercionTarget parent,
String name) |
PrimitiveResolvingCoercionTarget(Class<?> type,
AnnotatedElement annotatedElement,
Class<?> owner,
CoercionTarget parent,
String name) |
Copyright © 2003–2017 RedEngine Ltd. All rights reserved.