org.codehaus.enunciate.contract.jaxb.adapters
Class AdapterType

java.lang.Object
  extended by net.sf.jelly.apt.decorations.type.DecoratedTypeMirror
      extended by net.sf.jelly.apt.decorations.type.DecoratedReferenceType
          extended by net.sf.jelly.apt.decorations.type.DecoratedDeclaredType
              extended by net.sf.jelly.apt.decorations.type.DecoratedClassType
                  extended by org.codehaus.enunciate.contract.jaxb.adapters.AdapterType
All Implemented Interfaces:
com.sun.mirror.type.ClassType, com.sun.mirror.type.DeclaredType, com.sun.mirror.type.ReferenceType, com.sun.mirror.type.TypeMirror

public class AdapterType
extends net.sf.jelly.apt.decorations.type.DecoratedClassType

A type mirror that mirrors an XmlAdapter.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.jelly.apt.decorations.type.DecoratedTypeMirror
delegate
 
Constructor Summary
AdapterType(com.sun.mirror.type.ClassType adapterType)
           
 
Method Summary
 boolean canAdapt(com.sun.mirror.type.ReferenceType type)
          Whether this adapter can adapt the specified type.
 com.sun.mirror.type.ReferenceType getAdaptedType()
          The type that is being adapted by this adapter.
 com.sun.mirror.type.TypeMirror getAdaptingType()
          The type to which this adapter is adapting.
 com.sun.mirror.type.TypeMirror getAdaptingType(com.sun.mirror.type.TypeMirror adaptedType)
          Get the adapting type for the specified type.
 
Methods inherited from class net.sf.jelly.apt.decorations.type.DecoratedClassType
accept, getDeclaration, getSuperclass, isClass, isInstanceOf
 
Methods inherited from class net.sf.jelly.apt.decorations.type.DecoratedDeclaredType
getActualTypeArguments, getContainingType, getSuperinterfaces, isDeclared
 
Methods inherited from class net.sf.jelly.apt.decorations.type.DecoratedReferenceType
isReferenceType
 
Methods inherited from class net.sf.jelly.apt.decorations.type.DecoratedTypeMirror
equals, getDelegate, getDocComment, getDocValue, isAnnotation, isArray, isCollection, isEnum, isInterface, isPrimitive, isTypeVariable, isVoid, isWildcard, setDocComment, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.mirror.type.DeclaredType
getActualTypeArguments, getContainingType, getSuperinterfaces
 
Methods inherited from interface com.sun.mirror.type.TypeMirror
equals, toString
 

Constructor Detail

AdapterType

public AdapterType(com.sun.mirror.type.ClassType adapterType)
Method Detail

canAdapt

public boolean canAdapt(com.sun.mirror.type.ReferenceType type)
Whether this adapter can adapt the specified type.

Parameters:
type - The type.
Returns:
Whether this adapter can adapt the specified type.

getAdaptingType

public com.sun.mirror.type.TypeMirror getAdaptingType(com.sun.mirror.type.TypeMirror adaptedType)
Get the adapting type for the specified type. This method differs from getAdaptingType() because it takes into account whether the adapted is an array or collection.

Parameters:
adaptedType - The type.
Returns:
The adapting type, or null if not adaptable.

getAdaptedType

public com.sun.mirror.type.ReferenceType getAdaptedType()
The type that is being adapted by this adapter.

Returns:
The type that is being adapted by this adapter.

getAdaptingType

public com.sun.mirror.type.TypeMirror getAdaptingType()
The type to which this adapter is adapting.

Returns:
The type to which this adapter is adapting.