com.sun.tools.xjc.model

Class CAdapter

public final class CAdapter extends Adapter<NType,NClass>

Extended Adapter for use within XJC.
Constructor Summary
CAdapter(Class<? extends XmlAdapter> adapter, boolean copy)
When the adapter class is statically known to us.
CAdapter(JClass adapter)
Method Summary
JClassgetAdapterClass(Outline o)
Class<? extends XmlAdapter>getAdapterIfKnown()
Returns the adapter class if the adapter type is statically known to XJC.
static NClassgetRef(Class<? extends XmlAdapter> adapter, boolean copy)
booleanisWhitespaceAdapter()
Returns true if the adapter is for whitespace normalization.

Constructor Detail

CAdapter

public CAdapter(Class<? extends XmlAdapter> adapter, boolean copy)
When the adapter class is statically known to us.

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

CAdapter

public CAdapter(JClass adapter)

Method Detail

getAdapterClass

public JClass getAdapterClass(Outline o)

getAdapterIfKnown

public Class<? extends XmlAdapter> getAdapterIfKnown()
Returns the adapter class if the adapter type is statically known to XJC.

This method is mostly for enabling certain optimized code generation.

getRef

static NClass getRef(Class<? extends XmlAdapter> adapter, boolean copy)

isWhitespaceAdapter

public boolean isWhitespaceAdapter()
Returns true if the adapter is for whitespace normalization. Such an adapter can be ignored when producing a list.