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, getErrorInstance
public ListIterator iterator(T collection, XMLSerializer context)
Lister
iterator
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
Lister
startPacking
in class Lister<BeanT,T extends Collection,Object,T extends Collection>
AccessorException
public void addToPack(T collection, Object o)
Lister
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.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
Lister
pack
. This method may update the field of
the given bean.endPacking
in class Lister<BeanT,T extends Collection,Object,T extends Collection>
AccessorException
public void reset(BeanT bean, Accessor<BeanT,T> acc) throws AccessorException
Lister
reset
in class Lister<BeanT,T extends Collection,Object,T extends Collection>
AccessorException
Copyright © 2021 JBoss by Red Hat. All rights reserved.