Lister.CollectionLister<BeanT,T extends java.util.Collection>, Lister.IDREFSIterator, Lister.Pack<ItemT>| Constructor | Description |
|---|---|
CollectionLister(java.lang.Class<? extends T> implClass) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addToPack(T collection,
java.lang.Object o) |
Once the
Lister.startPacking(BeanT, com.sun.xml.bind.v2.runtime.reflect.Accessor<BeanT, PropT>) is called, you can
add values to the pack by using this method. |
void |
endPacking(T collection,
BeanT bean,
Accessor<BeanT,T> acc) |
Finally, call this method to
wraps up the
pack. |
ListIterator |
iterator(T collection,
XMLSerializer context) |
Iterates values of a multi-value property.
|
void |
reset(BeanT bean,
Accessor<BeanT,T> acc) |
Clears the values of the property.
|
T |
startPacking(BeanT bean,
Accessor<BeanT,T> acc) |
Setting values to a multi-value property starts by creating
a transient object called "pack" from the current field.
|
create, getErrorInstancepublic CollectionLister(java.lang.Class<? extends T> implClass)
public ListIterator iterator(T collection, XMLSerializer context)
Listerpublic T startPacking(BeanT bean, Accessor<BeanT,T> acc) throws AccessorException
ListerstartPacking in class Lister<BeanT,T extends java.util.Collection,java.lang.Object,T extends java.util.Collection>AccessorExceptionpublic void addToPack(T collection, java.lang.Object o)
ListerLister.startPacking(BeanT, com.sun.xml.bind.v2.runtime.reflect.Accessor<BeanT, PropT>) is called, you can
add values to the pack by using this method.public void endPacking(T collection, BeanT bean, Accessor<BeanT,T> acc) throws AccessorException
Listerpack. This method may update the field of
the given bean.endPacking in class Lister<BeanT,T extends java.util.Collection,java.lang.Object,T extends java.util.Collection>AccessorExceptionCopyright © 2018 Oracle Corporation. All rights reserved.