| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class | |
| private static class | |
| public static class | Lister.
|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | arrayListerCache
Cache instances of |
| private static final Class | |
| private static final ListIterator | |
| public static final Lister | |
| pack-priv static final Map | primitiveArrayListers
Listers for the primitive type arrays, keyed by their primitive Class object. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | addToPack(PackT pack, ItemT newValue)
Once the |
| public static <BeanT, PropT, ItemT, PackT> Lister | |
| public abstract void | endPacking(PackT pack, BeanT bean, Accessor<BeanT, PropT> acc)
Finally, call this method to
wraps up the |
| private static Lister | |
| public static <A, B, C, D> Lister | |
| private static Class | |
| public abstract ListIterator | iterator(PropT multiValueProp, XMLSerializer
This parameter is used to support ID/IDREF handling. context)Iterates values of a multi-value property. |
| public abstract void | |
| public abstract PackT | startPacking(BeanT bean, Accessor<BeanT, PropT> acc)
Setting values to a multi-value property starts by creating a transient object called "pack" from the current field. |
| arrayListerCache | back to summary |
|---|---|
| private static final Map<Class<T>, WeakReference<Lister<BeanT, PropT, ItemT, PackT>>> arrayListerCache Cache instances of | |
| COLLECTION_IMPL_CLASSES | back to summary |
|---|---|
| private static final Class<T>[] COLLECTION_IMPL_CLASSES | |
| EMPTY_ITERATOR | back to summary |
|---|---|
| private static final ListIterator<E> EMPTY_ITERATOR | |
| ERROR | back to summary |
|---|---|
| public static final Lister<BeanT, PropT, ItemT, PackT> ERROR | |
| primitiveArrayListers | back to summary |
|---|---|
| pack-priv static final Map<Class<T>, Lister<BeanT, PropT, ItemT, PackT>> primitiveArrayListers Listers for the primitive type arrays, keyed by their primitive Class object. | |
| Lister | back to summary |
|---|---|
| protected Lister() | |
| addToPack | back to summary |
|---|---|
| public abstract void addToPack(PackT pack, ItemT newValue) throws AccessorException Once the | |
| create | back to summary |
|---|---|
| public static <BeanT, PropT, ItemT, PackT> Lister Gets a reference to the appropriate object if the field is a multi-value field. Otherwise null. | |
| endPacking | back to summary |
|---|---|
| public abstract void endPacking(PackT pack, BeanT bean, Accessor<BeanT, PropT> acc) throws AccessorException Finally, call this method to
wraps up the | |
| getArrayLister | back to summary |
|---|---|
| private static Lister Creates a lister for array type. | |
| getErrorInstance | back to summary |
|---|---|
| public static <A, B, C, D> Lister Gets the special used to recover from an error.
| |
| getImplClass | back to summary |
|---|---|
| private static Class | |
| iterator | back to summary |
|---|---|
| public abstract ListIterator Iterates values of a multi-value property.
| |
| reset | back to summary |
|---|---|
| public abstract void reset(BeanT o, Accessor<BeanT, PropT> acc) throws AccessorException Clears the values of the property. | |
| startPacking | back to summary |
|---|---|
| public abstract PackT startPacking(BeanT bean, Accessor<BeanT, PropT> acc) throws AccessorException Setting values to a multi-value property starts by creating a transient object called "pack" from the current field. | |
Lister for an array.
Array packing is slower, but we expect this to be used less frequently than
the CollectionLister.
| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addToPack(Lister.
Implements abstract org. Once the |
| public void | endPacking(Lister.
Implements abstract org. Finally, call this method to
wraps up the |
| public ListIterator | iterator(final ItemT[] objects, XMLSerializer context)
Implements abstract org. Iterates values of a multi-value property. |
| public void | reset(BeanT o, Accessor<BeanT, ItemT[]> acc)
Implements abstract org. Clears the values of the property. |
| public Lister. | startPacking(BeanT current, Accessor<BeanT, ItemT[]> acc)
Implements abstract org. Setting values to a multi-value property starts by creating a transient object called "pack" from the current field. |
| itemType | back to summary |
|---|---|
| private final Class<ItemT> itemType | |
| ArrayLister | back to summary |
|---|---|
| public ArrayLister(Class<ItemT> itemType) | |
| addToPack | back to summary |
|---|---|
| public void addToPack(Lister. Implements abstract org. Doc from org. Once the
| |
| endPacking | back to summary |
|---|---|
| public void endPacking(Lister. Implements abstract org. Doc from org. Finally, call this method to
wraps up the
| |
| iterator | back to summary |
|---|---|
| public ListIterator Implements abstract org. Doc from org. Iterates values of a multi-value property.
| |
| reset | back to summary |
|---|---|
| public void reset(BeanT o, Accessor<BeanT, ItemT[]> acc) throws AccessorException Implements abstract org. Doc from org. Clears the values of the property.
| |
| startPacking | back to summary |
|---|---|
| public Lister. Implements abstract org. Doc from org. Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.
| |
Lister for a collection
| Modifier and Type | Field and Description |
|---|---|
| private final Class | implClass
Sometimes we need to create a new instance of a collection. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addToPack(T collection, Object o)
Implements abstract org. Once the |
| public void | endPacking(T collection, BeanT bean, Accessor<BeanT, T> acc)
Implements abstract org. Finally, call this method to
wraps up the |
| public ListIterator | iterator(T collection, XMLSerializer context)
Implements abstract org. Iterates values of a multi-value property. |
| public void | reset(BeanT bean, Accessor<BeanT, T> acc)
Implements abstract org. Clears the values of the property. |
| public T | startPacking(BeanT bean, Accessor<BeanT, T> acc)
Implements abstract org. Setting values to a multi-value property starts by creating a transient object called "pack" from the current field. |
| implClass | back to summary |
|---|---|
| private final Class<? extends T> implClass Sometimes we need to create a new instance of a collection. This is such an implementation class. | |
| CollectionLister | back to summary |
|---|---|
| public CollectionLister(Class<? extends T> implClass) | |
| addToPack | back to summary |
|---|---|
| public void addToPack(T collection, Object o) Implements abstract org. Doc from org. Once the
| |
| endPacking | back to summary |
|---|---|
| public void endPacking(T collection, BeanT bean, Accessor<BeanT, T> acc) throws AccessorException Implements abstract org. Doc from org. Finally, call this method to
wraps up the
| |
| iterator | back to summary |
|---|---|
| public ListIterator Implements abstract org. Doc from org. Iterates values of a multi-value property.
| |
| reset | back to summary |
|---|---|
| public void reset(BeanT bean, Accessor<BeanT, T> acc) throws AccessorException Implements abstract org. Doc from org. Clears the values of the property.
| |
| startPacking | back to summary |
|---|---|
| public T startPacking(BeanT bean, Accessor<BeanT, T> acc) throws AccessorException Implements abstract org. Doc from org. Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.
| |
Lister for IDREFS.
| Modifier and Type | Class and Description |
|---|---|
| private class | Lister.
PackT for this lister. |
| Modifier and Type | Field and Description |
|---|---|
| private final Lister | |
| private final Class | itemType
Expected type to which IDREF resolves to. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addToPack(Lister.
Implements abstract org. Once the |
| public void | endPacking(Lister.
Implements abstract org. Finally, call this method to
wraps up the |
| public ListIterator | iterator(PropT prop, XMLSerializer context)
Implements abstract org. Iterates values of a multi-value property. |
| public void | reset(BeanT bean, Accessor<BeanT, PropT> acc)
Implements abstract org. Clears the values of the property. |
| public Lister. | startPacking(BeanT bean, Accessor<BeanT, PropT> acc)
Implements abstract org. Setting values to a multi-value property starts by creating a transient object called "pack" from the current field. |
| core | back to summary |
|---|---|
| private final Lister<BeanT, PropT, Object, Object> core | |
| itemType | back to summary |
|---|---|
| private final Class<T> itemType Expected type to which IDREF resolves to. | |
| IDREFS | back to summary |
|---|---|
| public IDREFS(Lister<BeanT, PropT, ItemT, PackT> core, Class<T> itemType) | |
| addToPack | back to summary |
|---|---|
| public void addToPack(Lister. Implements abstract org. Doc from org. Once the
| |
| endPacking | back to summary |
|---|---|
| public void endPacking(Lister. Implements abstract org. Doc from org. Finally, call this method to
wraps up the
| |
| iterator | back to summary |
|---|---|
| public ListIterator Implements abstract org. Doc from org. Iterates values of a multi-value property.
| |
| reset | back to summary |
|---|---|
| public void reset(BeanT bean, Accessor<BeanT, PropT> acc) throws AccessorException Implements abstract org. Doc from org. Clears the values of the property.
| |
| startPacking | back to summary |
|---|---|
| public Lister. Implements abstract org. Doc from org. Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Accessor | |
| private final BeanT | |
| private final UnmarshallingContext | |
| private final List | |
| private final LocatorEx |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | run()
Implements org. Resolves IDREFS and fill in the actual array. |
| acc | back to summary |
|---|---|
| private final Accessor<BeanT, PropT> acc | |
| bean | back to summary |
|---|---|
| private final BeanT bean | |
| context | back to summary |
|---|---|
| private final UnmarshallingContext context | |
| idrefs | back to summary |
|---|---|
| private final List<String> idrefs | |
| location | back to summary |
|---|---|
| private final LocatorEx location | |
| Pack | back to summary |
|---|---|
| public Pack(BeanT bean, Accessor<BeanT, PropT> acc) | |
| add | back to summary |
|---|---|
| public void add(String item) | |
| run | back to summary |
|---|---|
| public void run() throws SAXException Implements org. Resolves IDREFS and fill in the actual array.
| |
Iterator for IDREFS lister.
Only in ArrayElementProperty we need to get the actual referenced object. This is a kind of ugly way to make that work.
| Modifier and Type | Field and Description |
|---|---|
| private final XMLSerializer | |
| private final ListIterator | |
| private Object |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasNext()
Implements org. Works like |
| public Object | |
| public String | next()
Implements org. Works like |
| context | back to summary |
|---|---|
| private final XMLSerializer context | |
| i | back to summary |
|---|---|
| private final ListIterator<E> i | |
| last | back to summary |
|---|---|
| private Object last | |
| IDREFSIterator | back to summary |
|---|---|
| private IDREFSIterator(ListIterator<E> i, XMLSerializer context) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements org. Doc from org. Works like
| |
| last | back to summary |
|---|---|
| public Object last() Returns the last referenced object (not just its ID) | |
| next | back to summary |
|---|---|
| public String next() throws SAXException, JAXBException Implements org. Doc from org. Works like
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private static final long |
| Modifier and Type | Method and Description |
|---|---|
| public ItemT[] |
| itemType | back to summary |
|---|---|
| private final Class<ItemT> itemType | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Pack | back to summary |
|---|---|
| public Pack(Class<ItemT> itemType) | |
| build | back to summary |
|---|---|
| public ItemT[] build() | |