Class CAdapter

java.lang.Object
org.glassfish.jaxb.core.v2.model.core.Adapter<NType,NClass>
com.sun.tools.xjc.model.CAdapter

public final class CAdapter extends org.glassfish.jaxb.core.v2.model.core.Adapter<NType,NClass>
Extended Adapter for use within XJC.
Author:
Kohsuke Kawaguchi
  • Field Summary

    Fields inherited from class org.glassfish.jaxb.core.v2.model.core.Adapter

    adapterType, customType, defaultType
  • Constructor Summary

    Constructors
    Constructor
    Description
    CAdapter(JClass adapter)
     
    CAdapter(Class<? extends jakarta.xml.bind.annotation.adapters.XmlAdapter> adapter, boolean copy)
    When the adapter class is statically known to us.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Class<? extends jakarta.xml.bind.annotation.adapters.XmlAdapter>
    Returns the adapter class if the adapter type is statically known to XJC.
    boolean
    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 Details

    • CAdapter

      public CAdapter(Class<? extends jakarta.xml.bind.annotation.adapters.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 Details

    • getAdapterClass

      public 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 jakarta.xml.bind.annotation.adapters.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.