com.sun.xml.bind.v2.runtime.reflect
Class Lister.CollectionLister<BeanT,T extends java.util.Collection>
java.lang.Object
com.sun.xml.bind.v2.runtime.reflect.Lister<BeanT,T,java.lang.Object,T>
com.sun.xml.bind.v2.runtime.reflect.Lister.CollectionLister<BeanT,T>
- Enclosing class:
- Lister<BeanT,PropT,ItemT,PackT>
public static final class Lister.CollectionLister<BeanT,T extends java.util.Collection>
- extends Lister<BeanT,T,java.lang.Object,T>
Lister
for a collection
Fields inherited from class com.sun.xml.bind.v2.runtime.reflect.Lister |
ERROR |
Method Summary |
void |
addToPack(T collection,
java.lang.Object o)
Once the Lister.startPacking(BeanT, com.sun.xml.bind.v2.runtime.reflect.Accessor) 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Lister.CollectionLister
public Lister.CollectionLister(java.lang.Class<? extends T> implClass)
iterator
public ListIterator iterator(T collection,
XMLSerializer context)
- Description copied from class:
Lister
- Iterates values of a multi-value property.
- Specified by:
iterator
in class Lister<BeanT,T extends java.util.Collection,java.lang.Object,T extends java.util.Collection>
context
- This parameter is used to support ID/IDREF handling.
startPacking
public T startPacking(BeanT bean,
Accessor<BeanT,T> acc)
throws AccessorException
- Description copied from class:
Lister
- Setting values to a multi-value property starts by creating
a transient object called "pack" from the current field.
- Specified by:
startPacking
in class Lister<BeanT,T extends java.util.Collection,java.lang.Object,T extends java.util.Collection>
- Throws:
AccessorException
addToPack
public void addToPack(T collection,
java.lang.Object o)
- Description copied from class:
Lister
- Once the
Lister.startPacking(BeanT, com.sun.xml.bind.v2.runtime.reflect.Accessor)
is called, you can
add values to the pack by using this method.
- Specified by:
addToPack
in class Lister<BeanT,T extends java.util.Collection,java.lang.Object,T extends java.util.Collection>
endPacking
public void endPacking(T collection,
BeanT bean,
Accessor<BeanT,T> acc)
throws AccessorException
- Description copied from class:
Lister
- Finally, call this method to
wraps up the
pack
. This method may update the field of
the given bean.
- Specified by:
endPacking
in class Lister<BeanT,T extends java.util.Collection,java.lang.Object,T extends java.util.Collection>
- Throws:
AccessorException
reset
public void reset(BeanT bean,
Accessor<BeanT,T> acc)
throws AccessorException
- Description copied from class:
Lister
- Clears the values of the property.
- Specified by:
reset
in class Lister<BeanT,T extends java.util.Collection,java.lang.Object,T extends java.util.Collection>
- Throws:
AccessorException