Top Description Fields Constructors Methods
com.sun.tools.xjc.model

public final Class CAdapter

extends Adapter<NType, NClass>
Class Inheritance
Imports
jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter, .NormalizedStringAdapter, .XmlAdapter, com.sun.codemodel.JClass, com.sun.tools.xjc.model.nav.EagerNClass, .NClass, .NType, .NavigatorImpl, com.sun.tools.xjc.outline.Aspect, .Outline, org.glassfish.jaxb.core.v2.model.core.Adapter

Extended Adapter for use within XJC.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private JClass
adapterClass1

If non-null, the same as adapterType but more conveniently typed.

private Class<? extends XmlAdapter<ValueType, BoundType>>
adapterClass2

If non-null, the same as adapterType but more conveniently typed.

Inherited from org.glassfish.jaxb.core.v2.model.core.Adapter:
adapterTypecustomTypedefaultType

Constructor Summary

AccessConstructor and Description
public
CAdapter(Class<? extends XmlAdapter<ValueType, BoundType>> adapter, boolean
true to copy the adapter class into the user package, or otherwise just refer to the class specified via the adapter parameter.
copy
)

When the adapter class is statically known to us.

public
CAdapter(JClass adapter)

Method Summary

Modifier and TypeMethod and Description
public JClass
public Class<? extends XmlAdapter<ValueType, BoundType>>
getAdapterIfKnown()

Returns the adapter class if the adapter type is statically known to XJC.

pack-priv static NClass
getRef(final Class<? extends XmlAdapter<ValueType, BoundType>> adapter, boolean copy)

public boolean
isWhitespaceAdapter()

Returns true if the adapter is for whitespace normalization.

Field Detail

adapterClass1back to summary
private JClass adapterClass1

If non-null, the same as adapterType but more conveniently typed.

adapterClass2back to summary
private Class<? extends XmlAdapter<ValueType, BoundType>> adapterClass2

If non-null, the same as adapterType but more conveniently typed.

Constructor Detail

CAdapterback to summary
public CAdapter(Class<? extends XmlAdapter<ValueType, BoundType>> adapter, boolean copy)

When the adapter class is statically known to us.

Parameters
copy:boolean

true to copy the adapter class into the user package, or otherwise just refer to the class specified via the adapter parameter.

CAdapterback to summary
public CAdapter(JClass adapter)

Method Detail

getAdapterClassback to summary
public JClass getAdapterClass(Outline o)
getAdapterIfKnownback to summary
public Class<? extends XmlAdapter<ValueType, BoundType>> getAdapterIfKnown()

Returns the adapter class if the adapter type is statically known to XJC.

This method is mostly for enabling certain optimized code generation.

getRefback to summary
pack-priv static NClass getRef(final Class<? extends XmlAdapter<ValueType, BoundType>> adapter, boolean copy)
isWhitespaceAdapterback to summary
public boolean isWhitespaceAdapter()

Returns true if the adapter is for whitespace normalization. Such an adapter can be ignored when producing a list.