com.sun.tools.xjc.api.impl.s2j

Class ElementAdapter

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 CElementInfo (or else we can't infer the tag name.)

Nested Class Summary
protected abstract classElementAdapter.FieldAccessorImpl
Field Summary
protected FieldOutlinecore
protected CElementInfoei
The only one CElementInfo that can be in the property.
Constructor Summary
ElementAdapter(FieldOutline core, CElementInfo ei)
Method Summary
protected JCodeModelcodeModel()
CPropertyInfogetPropertyInfo()
protected Outlineoutline()
ClassOutlineparent()

Field Detail

core

protected final FieldOutline core

ei

protected final CElementInfo ei
The only one CElementInfo that can be in the property.

Constructor Detail

ElementAdapter

public ElementAdapter(FieldOutline core, CElementInfo ei)

Method Detail

codeModel

protected final JCodeModel codeModel()

getPropertyInfo

public CPropertyInfo getPropertyInfo()

outline

protected final Outline outline()

parent

public ClassOutline parent()