com.sun.xml.bind.v2.model.core

Class Adapter<TypeT,ClassDeclT>

public class Adapter<TypeT,ClassDeclT> extends Object

Adapter that wraps XmlJavaTypeAdapter.
Field Summary
ClassDeclTadapterType
The adapter class.
TypeTcustomType
The type that is stored in memory.
TypeTdefaultType
The type that the JAXB can handle natively.
Constructor Summary
Adapter(XmlJavaTypeAdapter spec, AnnotationReader<TypeT,ClassDeclT,?,?> reader, Navigator<TypeT,ClassDeclT,?,?> nav)
Adapter(ClassDeclT adapterType, Navigator<TypeT,ClassDeclT,?,?> nav)

Field Detail

adapterType

public final ClassDeclT adapterType
The adapter class. Always non-null. A class that derives from javax.xml.bind.annotation.adapters.XmlAdapter.

customType

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

defaultType

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

Constructor Detail

Adapter

public Adapter(XmlJavaTypeAdapter spec, AnnotationReader<TypeT,ClassDeclT,?,?> reader, Navigator<TypeT,ClassDeclT,?,?> nav)

Adapter

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