com.sun.xml.bind.v2.runtime.reflect
Class AdaptedLister<BeanT,PropT,InMemItemT,OnWireItemT,PackT>
java.lang.Object
com.sun.xml.bind.v2.runtime.reflect.Lister<BeanT,PropT,OnWireItemT,PackT>
com.sun.xml.bind.v2.runtime.reflect.AdaptedLister<BeanT,PropT,InMemItemT,OnWireItemT,PackT>
final class AdaptedLister<BeanT,PropT,InMemItemT,OnWireItemT,PackT>
- extends Lister<BeanT,PropT,OnWireItemT,PackT>
Lister
that adapts individual item types.
Method Summary |
void |
addToPack(PackT pack,
OnWireItemT item)
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(PackT pack,
BeanT bean,
Accessor<BeanT,PropT> accessor)
Finally, call this method to
wraps up the pack . |
ListIterator<OnWireItemT> |
iterator(PropT prop,
XMLSerializer context)
Iterates values of a multi-value property. |
void |
reset(BeanT bean,
Accessor<BeanT,PropT> accessor)
Clears the values of the property. |
PackT |
startPacking(BeanT bean,
Accessor<BeanT,PropT> accessor)
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 |
AdaptedLister
AdaptedLister(Lister<BeanT,PropT,InMemItemT,PackT> core,
Class<? extends XmlAdapter<OnWireItemT,InMemItemT>> adapter)
iterator
public ListIterator<OnWireItemT> iterator(PropT prop,
XMLSerializer context)
- Description copied from class:
Lister
- Iterates values of a multi-value property.
- Specified by:
iterator
in class Lister<BeanT,PropT,OnWireItemT,PackT>
context
- This parameter is used to support ID/IDREF handling.
startPacking
public PackT startPacking(BeanT bean,
Accessor<BeanT,PropT> accessor)
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,PropT,OnWireItemT,PackT>
- Throws:
AccessorException
addToPack
public void addToPack(PackT pack,
OnWireItemT item)
throws AccessorException
- 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,PropT,OnWireItemT,PackT>
- Throws:
AccessorException
endPacking
public void endPacking(PackT pack,
BeanT bean,
Accessor<BeanT,PropT> accessor)
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,PropT,OnWireItemT,PackT>
- Throws:
AccessorException
reset
public void reset(BeanT bean,
Accessor<BeanT,PropT> accessor)
throws AccessorException
- Description copied from class:
Lister
- Clears the values of the property.
- Specified by:
reset
in class Lister<BeanT,PropT,OnWireItemT,PackT>
- Throws:
AccessorException