net.stickycode.coercion.target
Class ParameterizedCoercionTarget

java.lang.Object
  extended by net.stickycode.coercion.target.AbstractCoercionTarget
      extended by net.stickycode.coercion.target.ParameterizedCoercionTarget
All Implemented Interfaces:
CoercionTarget

public class ParameterizedCoercionTarget
extends AbstractCoercionTarget


Field Summary
 
Fields inherited from class net.stickycode.coercion.target.AbstractCoercionTarget
owner, parent, type
 
Constructor Summary
ParameterizedCoercionTarget(ParameterizedType genericType, AnnotatedElement element, Class<?> owner, CoercionTarget parent)
           
 
Method Summary
 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()
           
 
Methods inherited from class net.stickycode.coercion.target.AbstractCoercionTarget
boxedType, getOwner, getParent, getType, hasParent, isArray, isPrimitive
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterizedCoercionTarget

public ParameterizedCoercionTarget(ParameterizedType genericType,
                                   AnnotatedElement element,
                                   Class<?> owner,
                                   CoercionTarget parent)
Method Detail

hasComponents

public boolean hasComponents()
Description copied from interface: CoercionTarget
Does the target have components, this is true of any container e.g. Collection, Map

Specified by:
hasComponents in interface CoercionTarget
Overrides:
hasComponents in class AbstractCoercionTarget

getComponentCoercionTypes

public CoercionTarget[] getComponentCoercionTypes()
Description copied from interface: CoercionTarget
Return the CoercionTargets 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.

Specified by:
getComponentCoercionTypes in interface CoercionTarget
Overrides:
getComponentCoercionTypes in class AbstractCoercionTarget

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

canBeAnnotated

public boolean canBeAnnotated()
Specified by:
canBeAnnotated in interface CoercionTarget
Overrides:
canBeAnnotated in class AbstractCoercionTarget

getAnnotatedElement

public AnnotatedElement getAnnotatedElement()
Specified by:
getAnnotatedElement in interface CoercionTarget
Overrides:
getAnnotatedElement in class AbstractCoercionTarget

toString

public String toString()
Overrides:
toString in class AbstractCoercionTarget


Copyright © 2003-2012 RedEngine Ltd. All Rights Reserved.