public class ParameterizedCoercionTarget extends AbstractCoercionTarget
owner, parent, type| Constructor and Description |
|---|
ParameterizedCoercionTarget(ParameterizedType genericType,
AnnotatedElement element,
Class<?> owner,
CoercionTarget parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeAnnotated() |
boolean |
equals(Object obj) |
AnnotatedElement |
getAnnotatedElement() |
CoercionTarget[] |
getComponentCoercionTypes()
Return the
CoercionTargets for the components. |
boolean |
hasComponents()
Does the target have components, this is true of any container e.g.
|
int |
hashCode() |
String |
toString() |
boxedType, getName, getOwner, getParent, getType, hasParent, isArray, isPrimitivepublic ParameterizedCoercionTarget(ParameterizedType genericType, AnnotatedElement element, Class<?> owner, CoercionTarget parent, String name)
public boolean hasComponents()
CoercionTargetCollection, MaphasComponents in interface CoercionTargethasComponents in class AbstractCoercionTargetpublic CoercionTarget[] getComponentCoercionTypes()
CoercionTargetCoercionTargets for the components.
For a collection this would return a single CoercionTarget for the element contained.
For a map you would get one for the key and one for the value.getComponentCoercionTypes in interface CoercionTargetgetComponentCoercionTypes in class AbstractCoercionTargetpublic boolean canBeAnnotated()
canBeAnnotated in interface CoercionTargetcanBeAnnotated in class AbstractCoercionTargetpublic AnnotatedElement getAnnotatedElement()
getAnnotatedElement in interface CoercionTargetgetAnnotatedElement in class AbstractCoercionTargetpublic String toString()
toString in class AbstractCoercionTargetCopyright © 2003–2017 RedEngine Ltd. All rights reserved.