Top Description Fields Constructors Methods
org.glassfish.jaxb.core.v2.model.core

public Class Adapter<TypeT, ClassDeclT>

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.tools.xjc.model.CAdapter
Imports
jakarta.xml.bind.annotation.adapters.XmlAdapter, .XmlJavaTypeAdapter, org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader, org.glassfish.jaxb.core.v2.model.nav.Navigator

Adapter that wraps XmlJavaTypeAdapter.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
public final ClassDeclT
adapterType

The adapter class.

public final TypeT
customType

The type that is stored in memory.

public final TypeT
defaultType

The type that the JAXB can handle natively.

Constructor Summary

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

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

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

adapterTypeback to summary
public final ClassDeclT adapterType

The adapter class. Always non-null. A class that derives from jakarta.xml.bind.annotation.adapters.XmlAdapter.

customTypeback to summary
public final TypeT customType

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

defaultTypeback to summary
public final TypeT defaultType

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

Constructor Detail

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