com.sun.tools.xjc.api.impl.s2j
Class AbstractMappingImpl<InfoT extends CElement>
java.lang.Object
com.sun.tools.xjc.api.impl.s2j.AbstractMappingImpl<InfoT>
- All Implemented Interfaces:
- Mapping
- Direct Known Subclasses:
- BeanMappingImpl, ElementMappingImpl
abstract class AbstractMappingImpl<InfoT extends CElement>
- extends java.lang.Object
- implements Mapping
Partial common implementation between ElementMappingImpl
and BeanMappingImpl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.tools.xjc.api.Mapping |
getType |
parent
protected final JAXBModelImpl parent
clazz
protected final InfoT extends CElement clazz
AbstractMappingImpl
protected AbstractMappingImpl(JAXBModelImpl parent,
InfoT clazz)
getElement
public final javax.xml.namespace.QName getElement()
- Description copied from interface:
Mapping
- Name of the XML element.
- Specified by:
getElement
in interface Mapping
- Returns:
- never be null.
getClazz
public final java.lang.String getClazz()
getWrapperStyleDrilldown
public final java.util.List<? extends Property> getWrapperStyleDrilldown()
- Description copied from interface:
Mapping
- 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.
- Specified by:
getWrapperStyleDrilldown
in interface Mapping
- Returns:
- null if this isn't a wrapper-style element.
Otherwise list of
Property
s. The order signifies
the order they appeared inside a schema.
calcDrilldown
protected abstract java.util.List<Property> calcDrilldown()
buildDrilldown
protected java.util.List<Property> buildDrilldown(CClassInfo typeBean)
- Derived classes can use this method to implement
calcDrilldown()
.