Class Lister.CollectionLister<BeanT,T extends Collection>
java.lang.Object
com.sun.xml.bind.v2.runtime.reflect.Lister<BeanT,T,Object,T>
com.sun.xml.bind.v2.runtime.reflect.Lister.CollectionLister<BeanT,T>
public static final class Lister.CollectionLister<BeanT,T extends Collection>
extends Lister<BeanT,T,Object,T>
Lister for a collection-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.xml.bind.v2.runtime.reflect.Lister
Lister.CollectionLister<BeanT,T extends Collection>, Lister.IDREFSIterator, Lister.Pack<ItemT> -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOnce theLister.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.voidFinally, call this method to wraps up thepack.iterator(T collection, XMLSerializer context) Iterates values of a multi-value property.voidClears the values of the property.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.Methods inherited from class com.sun.xml.bind.v2.runtime.reflect.Lister
create, getErrorInstance
-
Constructor Details
-
CollectionLister
-
-
Method Details
-
iterator
Description copied from class:ListerIterates values of a multi-value property.- Specified by:
iteratorin classLister<BeanT,T extends Collection, Object, T extends Collection> context- This parameter is used to support ID/IDREF handling.
-
startPacking
Description copied from class:ListerSetting values to a multi-value property starts by creating a transient object called "pack" from the current field.- Specified by:
startPackingin classLister<BeanT,T extends Collection, Object, T extends Collection> - Throws:
AccessorException
-
addToPack
Description copied from class:ListerOnce theLister.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.- Specified by:
addToPackin classLister<BeanT,T extends Collection, Object, T extends Collection>
-
endPacking
Description copied from class:ListerFinally, call this method to wraps up thepack. This method may update the field of the given bean.- Specified by:
endPackingin classLister<BeanT,T extends Collection, Object, T extends Collection> - Throws:
AccessorException
-
reset
Description copied from class:ListerClears the values of the property.- Specified by:
resetin classLister<BeanT,T extends Collection, Object, T extends Collection> - Throws:
AccessorException
-