com.sun.tools.xjc.model
Class CAdapter

java.lang.Object
  extended by com.sun.xml.bind.v2.model.core.Adapter<NType,NClass>
      extended by com.sun.tools.xjc.model.CAdapter

public final class CAdapter
extends Adapter<NType,NClass>

Extended Adapter for use within XJC.


Field Summary
 
Fields inherited from class com.sun.xml.bind.v2.model.core.Adapter
adapterType, customType, defaultType
 
Constructor Summary
CAdapter(Class<? extends XmlAdapter> adapter, boolean copy)
          When the adapter class is statically known to us.
CAdapter(com.sun.codemodel.JClass adapter)
           
 
Method Summary
 com.sun.codemodel.JClass getAdapterClass(Outline o)
           
 Class<? extends XmlAdapter> getAdapterIfKnown()
          Returns the adapter class if the adapter type is statically known to XJC.
(package private) static NClass getRef(Class<? extends XmlAdapter> adapter, boolean copy)
           
 boolean isWhitespaceAdapter()
          Returns true if the adapter is for whitespace normalization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(com.sun.codemodel.JClass adapter)
Method Detail

getRef

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

getAdapterClass

public com.sun.codemodel.JClass getAdapterClass(Outline o)

isWhitespaceAdapter

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


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.