Top Description Fields Constructors Methods
com.sun.tools.xjc.api.impl.s2j

pack-priv abstract Class AbstractMappingImpl<InfoT extends CElement>

extends Object
implements Mapping
Class Inheritance
All Implemented Interfaces
com.sun.tools.xjc.api.Mapping
Known Direct Subclasses
com.sun.tools.xjc.api.impl.s2j.BeanMappingImpl, com.sun.tools.xjc.api.impl.s2j.ElementMappingImpl
Imports
java.util.ArrayList, .Collection, .List, javax.xml.namespace.QName, com.sun.tools.xjc.api.Mapping, .Property, com.sun.tools.xjc.model.CClassInfo, .CElement, .CElementInfo, .CElementPropertyInfo, .CPropertyInfo, .CReferencePropertyInfo, .CTypeRef, org.glassfish.jaxb.core.v2.model.core.ClassInfo, .ReferencePropertyInfo, com.sun.xml.xsom.XSComplexType, .XSComponent, .XSContentType, .XSModelGroup, .XSParticle, .XSTerm

Partial common implementation between ElementMappingImpl and BeanMappingImpl
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
protected final InfoT
private List<Property>
drilldown

Lazily computed.

private boolean
protected final JAXBModelImpl

Constructor Summary

AccessConstructor and Description
protected
AbstractMappingImpl(JAXBModelImpl parent, InfoT clazz)

Method Summary

Modifier and TypeMethod and Description
protected List<Property>
buildDrilldown(CClassInfo typeBean)

Derived classes can use this method to implement calcDrilldown.

protected abstract List<Property>
private boolean
private Property
public final String
public final QName
getElement()

Implements com.sun.tools.xjc.api.Mapping.getElement.

Name of the XML element.

public final List<? extends Property>
getWrapperStyleDrilldown()

Implements com.sun.tools.xjc.api.Mapping.getWrapperStyleDrilldown.

If this element is a so-called "wrapper-style" element, obtains its member information.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clazzback to summary
protected final InfoT clazz
drilldownback to summary
private List<Property> drilldown

Lazily computed.

See Also
getWrapperStyleDrilldown()
drilldownComputedback to summary
private boolean drilldownComputed
parentback to summary
protected final JAXBModelImpl parent

Constructor Detail

AbstractMappingImplback to summary
protected AbstractMappingImpl(JAXBModelImpl parent, InfoT clazz)

Method Detail

buildDrilldownback to summary
protected List<Property> buildDrilldown(CClassInfo typeBean)

Derived classes can use this method to implement calcDrilldown.

calcDrilldownback to summary
protected abstract List<Property> calcDrilldown()
containingChoiceback to summary
private boolean containingChoice(CClassInfo typeBean)
createPropertyImplback to summary
private Property createPropertyImpl(CPropertyInfo p, QName tagName)
getClazzback to summary
public final String getClazz()
getElementback to summary
public final QName getElement()

Implements com.sun.tools.xjc.api.Mapping.getElement.

Doc from com.sun.tools.xjc.api.Mapping.getElement.

Name of the XML element.

Annotations
@Override
getWrapperStyleDrilldownback to summary
public final List<? extends Property> getWrapperStyleDrilldown()

Implements com.sun.tools.xjc.api.Mapping.getWrapperStyleDrilldown.

Doc from com.sun.tools.xjc.api.Mapping.getWrapperStyleDrilldown.

If this element is a so-called "wrapper-style" element, obtains its member information.

The notion of the wrapper style should be defined by the JAXB spec, and ideally it should differ from that of the JAX-RPC only at the point where the JAX-RPC imposes additional restriction on the element name.

As of this writing the JAXB spec doesn't define "the wrapper style" and as such the exact definition of what XJC thinks "the wrapper style" isn't spec-ed.

Ths returned list includes Property defined not just in this class but in all its base classes.

Annotations
@Override