com.sun.xml.bind.v2.runtime.property

Class ArrayERProperty<BeanT,ListT,ItemT>

abstract class ArrayERProperty<BeanT,ListT,ItemT> extends ArrayProperty<BeanT,ListT,ItemT>

Commonality between ArrayElementProperty and ArrayReferenceNodeProperty. Mostly handles the unmarshalling of the wrapper element.
Nested Class Summary
protected classArrayERProperty.ReceiverImpl
Receiver that puts the child object into the Scope object.
Field Summary
protected booleanisWrapperNillable
True if the wrapper tag name is nillable.
protected NamewrapperTagName
Wrapper tag name if any, or null.
Constructor Summary
protected ArrayERProperty(JAXBContextImpl grammar, RuntimePropertyInfo prop, QName tagName, boolean isWrapperNillable)
Method Summary
voidbuildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> loaders)
protected abstract voidcreateBodyUnmarshaller(UnmarshallerChain chain, QNameMap<ChildLoader> loaders)
Creates the unmarshaller to unmarshal the body.
voidserializeBody(BeanT o, XMLSerializer w, Object outerPeer)
protected abstract voidserializeListBody(BeanT o, XMLSerializer w, ListT list)
Serializses the items of the list.

Field Detail

isWrapperNillable

protected final boolean isWrapperNillable
True if the wrapper tag name is nillable. Always false if wrapperTagName==null.

wrapperTagName

protected final Name wrapperTagName
Wrapper tag name if any, or null.

Constructor Detail

ArrayERProperty

protected ArrayERProperty(JAXBContextImpl grammar, RuntimePropertyInfo prop, QName tagName, boolean isWrapperNillable)

Method Detail

buildChildElementUnmarshallers

public final void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> loaders)

createBodyUnmarshaller

protected abstract void createBodyUnmarshaller(UnmarshallerChain chain, QNameMap<ChildLoader> loaders)
Creates the unmarshaller to unmarshal the body.

serializeBody

public final void serializeBody(BeanT o, XMLSerializer w, Object outerPeer)

serializeListBody

protected abstract void serializeListBody(BeanT o, XMLSerializer w, ListT list)
Serializses the items of the list. This method is invoked after the necessary wrapper tag is produced (if necessary.)

Parameters: list always non-null.