Lister.CollectionLister<BeanT,T extends Collection>, Lister.IDREFSIterator, Lister.Pack<ItemT>| Constructor and Description |
|---|
CollectionLister(Class<? extends T> implClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToPack(T collection,
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 ListIterator iterator(T collection, XMLSerializer context)
Listeriterator in class Lister<BeanT,T extends Collection,Object,T extends Collection>context - This parameter is used to support ID/IDREF handling.public T startPacking(BeanT bean, Accessor<BeanT,T> acc) throws AccessorException
ListerstartPacking in class Lister<BeanT,T extends Collection,Object,T extends Collection>AccessorExceptionpublic void addToPack(T collection, 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.addToPack in class Lister<BeanT,T extends Collection,Object,T extends Collection>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 Collection,Object,T extends Collection>AccessorExceptionpublic void reset(BeanT bean, Accessor<BeanT,T> acc) throws AccessorException
Listerreset in class Lister<BeanT,T extends Collection,Object,T extends Collection>AccessorExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.