com.sun.tools.xjc.api.impl.s2j
Class ElementAdapter
java.lang.Object
com.sun.tools.xjc.api.impl.s2j.ElementAdapter
- All Implemented Interfaces:
- FieldOutline
- Direct Known Subclasses:
- ElementCollectionAdapter, ElementSingleAdapter
abstract class ElementAdapter
- extends Object
- implements FieldOutline
FieldOutline
that wraps another FieldOutline
and allows JAX-WS to access values without using about
JAXBElement
.
That means if a value is requested, we unwrap JAXBElement
and give it to them. If a value is set, we wrap that into
JAXBElement, etc.
This can be used only with CReferencePropertyInfo
(or else it won't be JAXBElement),
with one {@link CElementInfo} (or else we can't infer the tag name.)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
core
protected final FieldOutline core
ei
protected final CElementInfo ei
- The only one
CElementInfo
that can be in the property.
ElementAdapter
public ElementAdapter(FieldOutline core,
CElementInfo ei)
parent
public ClassOutline parent()
- Description copied from interface:
FieldOutline
- Gets the enclosing
ClassOutline
.
- Specified by:
parent
in interface FieldOutline
getPropertyInfo
public CPropertyInfo getPropertyInfo()
- Description copied from interface:
FieldOutline
- Gets the corresponding model object.
- Specified by:
getPropertyInfo
in interface FieldOutline
outline
protected final Outline outline()
codeModel
protected final com.sun.codemodel.JCodeModel codeModel()