com.sun.xml.bind.v2.model.core
Class Adapter<TypeT,ClassDeclT>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.core.Adapter<TypeT,ClassDeclT>
Direct Known Subclasses:
CAdapter

public class Adapter<TypeT,ClassDeclT>
extends java.lang.Object

Adapter that wraps XmlJavaTypeAdapter.


Field Summary
 ClassDeclT adapterType
          The adapter class.
 TypeT customType
          The type that is stored in memory.
 TypeT defaultType
          The type that the JAXB can handle natively.
 
Constructor Summary
Adapter(ClassDeclT adapterType, Navigator<TypeT,ClassDeclT,?,?> nav)
           
Adapter(javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter spec, AnnotationReader<TypeT,ClassDeclT,?,?> reader, Navigator<TypeT,ClassDeclT,?,?> nav)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adapterType

public final ClassDeclT adapterType
The adapter class. Always non-null. A class that derives from XmlAdapter.


defaultType

public final TypeT defaultType
The type that the JAXB can handle natively. The Default parameter of XmlAdapter<Default,Custom>. Always non-null.


customType

public final TypeT customType
The type that is stored in memory. The Custom parameter of XmlAdapter<Default,Custom>.

Constructor Detail

Adapter

public Adapter(javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter spec,
               AnnotationReader<TypeT,ClassDeclT,?,?> reader,
               Navigator<TypeT,ClassDeclT,?,?> nav)

Adapter

public Adapter(ClassDeclT adapterType,
               Navigator<TypeT,ClassDeclT,?,?> nav)