ArrayElementProperty and ArrayReferenceNodeProperty.
Mostly handles the unmarshalling of the wrapper element.
| Modifier and Type | Class and Description |
|---|---|
| private static class | ArrayERProperty.
Used to handle the collection wrapper element. |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | isWrapperNillable
True if the wrapper tag name is nillable. |
| protected final Name | wrapperTagName
Wrapper tag name if any, or null. |
| Access | Constructor and Description |
|---|---|
| protected | ArrayERProperty(JAXBContextImpl grammar, RuntimePropertyInfo prop, QName tagName, boolean isWrapperNillable)
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> loaders)
Implements org. Every Property class has an implementation of buildChildElementUnmarshallers
which will fill in the specified |
| protected abstract void | createBodyUnmarshaller(UnmarshallerChain chain, QNameMap<ChildLoader> loaders)
Creates the unmarshaler to unmarshal the body. |
| public final void | serializeBody(BeanT o, XMLSerializer w, Object outerPeer)
Overrides org. Implements org.
|
| protected abstract void | serializeListBody(BeanT o, XMLSerializer w, ListT
always non-null. list)Serializes the items of the list. |
| isWrapperNillable | back to summary |
|---|---|
| protected final boolean isWrapperNillable True if the wrapper tag name is nillable.
Always false if | |
| wrapperTagName | back to summary |
|---|---|
| protected final Name wrapperTagName Wrapper tag name if any, or null. | |
| ArrayERProperty | back to summary |
|---|---|
| protected ArrayERProperty(JAXBContextImpl grammar, RuntimePropertyInfo prop, QName tagName, boolean isWrapperNillable) | |
| buildChildElementUnmarshallers | back to summary |
|---|---|
| public final void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> loaders) Implements org. Doc from org. Every Property class has an implementation of buildChildElementUnmarshallers
which will fill in the specified
| |
| createBodyUnmarshaller | back to summary |
|---|---|
| protected abstract void createBodyUnmarshaller(UnmarshallerChain chain, QNameMap<ChildLoader> loaders) Creates the unmarshaler to unmarshal the body. | |
| serializeBody | back to summary |
|---|---|
| public final void serializeBody(BeanT o, XMLSerializer w, Object outerPeer) throws SAXException, AccessorException, IOException, XMLStreamException Overrides org. Implements org.
| |
| serializeListBody | back to summary |
|---|---|
| protected abstract void serializeListBody(BeanT o, XMLSerializer w, ListT list) throws IOException, XMLStreamException, SAXException, AccessorException Serializes the items of the list. This method is invoked after the necessary wrapper tag is produced (if necessary.)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Accessor | |
| private final QNameMap | |
| private final Lister |
| Access | Constructor and Description |
|---|---|
| public | ItemsLoader(Accessor<BeanT, ValueT> acc, Lister<BeanT, PropT, ItemT, PackT> lister, QNameMap<ChildLoader> children)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | childElement(UnmarshallingContext.
Overrides org. Called when this loaderis an active loaderand we see a new child start tag. |
| public Collection | getExpectedChildElements()
Overrides org. Returns a set of tag names expected as possible child elements in this context. |
| public void | leaveElement(UnmarshallingContext.
Overrides org. Called when this loaderis an active loaderand we see an end tag. |
| public void | startElement(UnmarshallingContext.
Overrides org. Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader. |
| acc | back to summary |
|---|---|
| private final Accessor<BeanT, ValueT> acc | |
| children | back to summary |
|---|---|
| private final QNameMap<ChildLoader> children | |
| lister | back to summary |
|---|---|
| private final Lister<BeanT, PropT, ItemT, PackT> lister | |
| ItemsLoader | back to summary |
|---|---|
| public ItemsLoader(Accessor<BeanT, ValueT> acc, Lister<BeanT, PropT, ItemT, PackT> lister, QNameMap<ChildLoader> children) | |
| childElement | back to summary |
|---|---|
| public void childElement(UnmarshallingContext. Overrides org. Doc from org. Called when this loaderis an active loaderand we see a new child start tag.
The callee is expected to designate another loaderas a loaderthat processes
this element, then it should also register a The default implementation reports an error saying an element is unexpected.
| |
| getExpectedChildElements | back to summary |
|---|---|
| public Collection Overrides org. Doc from org. Returns a set of tag names expected as possible child elements in this context.
| |
| leaveElement | back to summary |
|---|---|
| public void leaveElement(UnmarshallingContext. Overrides org. Doc from org. Called when this loaderis an active loaderand we see an end tag.
| |
| startElement | back to summary |
|---|---|
| public void startElement(UnmarshallingContext. Overrides org. Doc from org. Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader.
The callee may change
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | receive(UnmarshallingContext.
Implements org. Called when the child loader is deactivated. |
| offset | back to summary |
|---|---|
| private final int offset | |
| ReceiverImpl | back to summary |
|---|---|
| protected ReceiverImpl(int offset) | |
| receive | back to summary |
|---|---|
| public void receive(UnmarshallingContext. Implements org. Doc from org. Called when the child loader is deactivated.
| |