Top Inners Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.property

pack-priv Class ArrayReferenceNodeProperty<BeanT, ListT, ItemT>

extends ArrayERProperty<BeanT, ListT, ItemT>
Class Inheritance
Imports
org.glassfish.jaxb.core.v2.ClassFactory, org.glassfish.jaxb.core.v2.model.core.PropertyKind, .WildcardMode, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeElement, .RuntimeReferencePropertyInfo, org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl, .JaxBeanInfo, .XMLSerializer, org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, .ListIterator, org.glassfish.jaxb.runtime.v2.util.QNameMap, jakarta.xml.bind.JAXBException, jakarta.xml.bind.annotation.DomHandler, org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.*, org.xml.sax.SAXException, javax.xml.stream.XMLStreamException, java.io.IOException

Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final DomHandler<ElementT, ResultT extends Result>
private final QNameMap<JaxBeanInfo<BeanT>>
expectedElements

Expected element names and what class to unmarshal.

private final boolean
private final WildcardMode
Inherited from org.glassfish.jaxb.runtime.v2.runtime.property.ArrayERProperty:
isWrapperNillablewrapperTagName

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public Accessor<BeanT, ValueT>
public PropertyKind
protected final void
serializeListBody(BeanT o, XMLSerializer w, ListT list)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.property.ArrayERProperty.serializeListBody.

Serializes the items of the list.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.property.ArrayERProperty:
buildChildElementUnmarshallersserializeBody

Field Detail

domHandlerback to summary
private final DomHandler<ElementT, ResultT extends Result> domHandler
expectedElementsback to summary
private final QNameMap<JaxBeanInfo<BeanT>> expectedElements

Expected element names and what class to unmarshal.

isMixedback to summary
private final boolean isMixed
wcModeback to summary
private final WildcardMode wcMode

Constructor Detail

ArrayReferenceNodePropertyback to summary
public ArrayReferenceNodeProperty(JAXBContextImpl p, RuntimeReferencePropertyInfo prop)

Method Detail

createBodyUnmarshallerback to summary
public void createBodyUnmarshaller(UnmarshallerChain chain, QNameMap<ChildLoader> loaders)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.property.ArrayERProperty.createBodyUnmarshaller.

Doc from org.glassfish.jaxb.runtime.v2.runtime.property.ArrayERProperty.createBodyUnmarshaller.

Creates the unmarshaler to unmarshal the body.

Annotations
@Override
getElementPropertyAccessorback to summary
public Accessor<BeanT, ValueT> getElementPropertyAccessor(String nsUri, String localName)

Overrides org.glassfish.jaxb.runtime.v2.runtime.property.PropertyImpl.getElementPropertyAccessor.

Implements org.glassfish.jaxb.runtime.v2.runtime.property.Property.getElementPropertyAccessor.

Doc from org.glassfish.jaxb.runtime.v2.runtime.property.Property.getElementPropertyAccessor.

If this property is mapped to the specified element, return an accessor to it.

Annotations
@Override
getKindback to summary
public PropertyKind getKind()

Implements org.glassfish.jaxb.runtime.v2.runtime.property.Property.getKind.

Doc from org.glassfish.jaxb.runtime.v2.runtime.property.Property.getKind.

Gets the Kind of property

Annotations
@Override
serializeListBodyback to summary
protected final void serializeListBody(BeanT o, XMLSerializer w, ListT list) throws IOException, XMLStreamException, SAXException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.property.ArrayERProperty.serializeListBody.

Doc from org.glassfish.jaxb.runtime.v2.runtime.property.ArrayERProperty.serializeListBody.

Serializes the items of the list. This method is invoked after the necessary wrapper tag is produced (if necessary.)

Annotations
@Override
org.glassfish.jaxb.runtime.v2.runtime.property back to summary

private final Class ArrayReferenceNodeProperty.MixedTextLoader

extends Loader
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Receiver
Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader:
expectText

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
text(UnmarshallingContext.State state, CharSequence text)

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.text.

Called when this loaderis an active loaderand we see a chunk of text.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader:
childElementexpectTextfireAfterUnmarshalfireBeforeUnmarshalgetExpectedAttributesgetExpectedChildElementshandleGenericErrorhandleGenericExceptionhandleGenericExceptionhandleParseConversionExceptionleaveElementreportErrorreportErrorreportUnexpectedChildElementstartElement

Field Detail

recvback to summary
private final Receiver recv

Constructor Detail

MixedTextLoaderback to summary
public MixedTextLoader(Receiver recv)

Method Detail

textback to summary
public void text(UnmarshallingContext.State state, CharSequence text) throws SAXException

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.text.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.text.

Called when this loaderis an active loaderand we see a chunk of text. The runtime makes sure that adjacent characters (even those separated by comments, PIs, etc) are reported as one event. IOW, you won't see two text event calls in a row.

Annotations
@Override