net.stickycode.coercion.target
Class ArrayCoercionTarget

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

public class ArrayCoercionTarget
extends AbstractCoercionTarget


Field Summary
 
Fields inherited from class net.stickycode.coercion.target.AbstractCoercionTarget
owner, parent, type
 
Constructor Summary
ArrayCoercionTarget(Class<?> type, Class<?> owner, CoercionTarget parent, String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 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()
           
 boolean isArray()
          Is the underlying target an array
 String toString()
           
 
Methods inherited from class net.stickycode.coercion.target.AbstractCoercionTarget
boxedType, canBeAnnotated, getAnnotatedElement, getName, getOwner, getParent, getType, hasParent, isPrimitive
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayCoercionTarget

public ArrayCoercionTarget(Class<?> type,
                           Class<?> owner,
                           CoercionTarget parent,
                           String name)
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

isArray

public boolean isArray()
Description copied from interface: CoercionTarget
Is the underlying target an array

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class AbstractCoercionTarget


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