| java.lang.Object com.sun.xml.internal.bind.v2.runtime.reflect.Lister
Lister | abstract public class Lister (Code) | | Used to list individual values of a multi-value property, and
to pack individual values into a multi-value property.
author: Kohsuke Kawaguchi (kk@kohsuke.org) |
Inner Class :final public static class Pack extends ArrayList | |
Inner Class :final public static class CollectionLister extends Lister | |
Constructor Summary | |
protected | Lister() |
Method Summary | |
abstract public void | addToPack(PackT pack, ItemT newValue) Once the
Lister.startPacking is called, you can
add values to the pack by using this method. | public static Lister<BeanT, PropT, ItemT, PackT> | create(Type fieldType, ID idness, Adapter<Type, Class> adapter) Gets a reference to the appropriate
Lister object
if the field is a multi-value field. | abstract public void | endPacking(PackT pack, BeanT bean, Accessor<BeanT, PropT> acc) Finally, call this method to
wraps up the
pack . | abstract public ListIterator<ItemT> | iterator(PropT multiValueProp, XMLSerializer context) Iterates values of a multi-value property. | abstract public void | reset(BeanT o, Accessor<BeanT, PropT> acc) Clears the values of the property. | abstract public 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. |
primitiveArrayListers | final static Map<Class, Lister> primitiveArrayListers(Code) | | Listers for the primitive type arrays, keyed by their primitive Class object.
|
Lister | protected Lister()(Code) | | |
create | public static Lister<BeanT, PropT, ItemT, PackT> create(Type fieldType, ID idness, Adapter<Type, Class> adapter)(Code) | | Gets a reference to the appropriate
Lister object
if the field is a multi-value field. Otherwise null.
Parameters: fieldType - the type of the field that stores the collection Parameters: idness - ID-ness of the property. Parameters: adapter - adapter to be used for individual items. can be null. |
endPacking | abstract public void endPacking(PackT pack, BeanT bean, Accessor<BeanT, PropT> acc) throws AccessorException(Code) | | Finally, call this method to
wraps up the
pack . This method may update the field of
the given bean.
|
iterator | abstract public ListIterator<ItemT> iterator(PropT multiValueProp, XMLSerializer context)(Code) | | Iterates values of a multi-value property.
Parameters: context - This parameter is used to support ID/IDREF handling. |
startPacking | abstract public PackT startPacking(BeanT bean, Accessor<BeanT, PropT> acc) throws AccessorException(Code) | | Setting values to a multi-value property starts by creating
a transient object called "pack" from the current field.
|
|
|