Top Description Inners Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.reflect

pack-priv final Class AdaptedLister<BeanT, PropT, InMemItemT, OnWireItemT, PackT>

extends Lister<BeanT, PropT, OnWireItemT, PackT>
Class Inheritance
Imports
org.glassfish.jaxb.runtime.api.AccessorException, org.glassfish.jaxb.runtime.v2.runtime.Coordinator, .XMLSerializer, jakarta.xml.bind.JAXBException, jakarta.xml.bind.annotation.adapters.XmlAdapter, org.xml.sax.SAXException

Lister that adapts individual item types.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final Class<? extends XmlAdapter<OnWireItemT, InMemItemT>>
private final Lister<BeanT, PropT, InMemItemT, PackT>
Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister:
ERRORprimitiveArrayListers

Constructor Summary

AccessConstructor and Description
pack-priv
AdaptedLister(Lister<BeanT, PropT, InMemItemT, PackT> core, Class<? extends XmlAdapter<OnWireItemT, InMemItemT>> adapter)

Method Summary

Modifier and TypeMethod and Description
public void
addToPack(PackT pack, OnWireItemT item)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Once the startPacking is called, you can add values to the pack by using this method.

public void
endPacking(PackT pack, BeanT bean, Accessor<BeanT, PropT> accessor)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Finally, call this method to wraps up the pack.

private XmlAdapter<OnWireItemT, InMemItemT>
public ListIterator<OnWireItemT>
iterator(PropT prop, XMLSerializer context)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Iterates values of a multi-value property.

public void
reset(BeanT bean, Accessor<BeanT, PropT> accessor)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Clears the values of the property.

public PackT
startPacking(BeanT bean, Accessor<BeanT, PropT> accessor)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister:
creategetErrorInstance

Field Detail

adapterback to summary
private final Class<? extends XmlAdapter<OnWireItemT, InMemItemT>> adapter
coreback to summary
private final Lister<BeanT, PropT, InMemItemT, PackT> core

Constructor Detail

AdaptedListerback to summary
pack-priv AdaptedLister(Lister<BeanT, PropT, InMemItemT, PackT> core, Class<? extends XmlAdapter<OnWireItemT, InMemItemT>> adapter)

Method Detail

addToPackback to summary
public void addToPack(PackT pack, OnWireItemT item) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.addToPack.

Once the startPacking is called, you can add values to the pack by using this method.

Annotations
@Override
endPackingback to summary
public void endPacking(PackT pack, BeanT bean, Accessor<BeanT, PropT> accessor) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.endPacking.

Finally, call this method to wraps up the pack. This method may update the field of the given bean.

Annotations
@Override
getAdapterback to summary
private XmlAdapter<OnWireItemT, InMemItemT> getAdapter()
iteratorback to summary
public ListIterator<OnWireItemT> iterator(PropT prop, XMLSerializer context)

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.iterator.

Iterates values of a multi-value property.

Annotations
@Override
resetback to summary
public void reset(BeanT bean, Accessor<BeanT, PropT> accessor) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.reset.

Clears the values of the property.

Annotations
@Override
startPackingback to summary
public PackT startPacking(BeanT bean, Accessor<BeanT, PropT> accessor) throws AccessorException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.Lister.startPacking.

Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.

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

private final Class AdaptedLister.ListIteratorImpl

extends Object
implements ListIterator<OnWireItemT>
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.runtime.v2.runtime.reflect.AdaptedLister.ListIteratorImpl
All Implemented Interfaces
org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator

Field Summary

Modifier and TypeField and Description
private final ListIterator<InMemItemT>
private final XMLSerializer

Constructor Summary

AccessConstructor and Description
public
ListIteratorImpl(ListIterator<InMemItemT> core, XMLSerializer serializer)

Method Summary

Modifier and TypeMethod and Description
public boolean
public OnWireItemT
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

coreback to summary
private final ListIterator<InMemItemT> core
serializerback to summary
private final XMLSerializer serializer

Constructor Detail

ListIteratorImplback to summary
public ListIteratorImpl(ListIterator<InMemItemT> core, XMLSerializer serializer)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator.hasNext.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator.hasNext.

Works like Iterator#hasNext().

Annotations
@Override
nextback to summary
public OnWireItemT next() throws SAXException, JAXBException

Implements org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator.next.

Doc from org.glassfish.jaxb.runtime.v2.runtime.reflect.ListIterator.next.

Works like Iterator#next().

Annotations
@Override
Exceptions
SAXException:
if an error is found, reported, and we were told to abort
JAXBException:
if an error is found, reported, and we were told to abort