| java.lang.Object com.sun.xml.bind.v2.runtime.unmarshaller.Scope
Scope | final public class Scope (Code) | | Holds the information about packing scope.
When no packing is started yet, all the fields should be set to null.
author: Kohsuke Kawaguchi |
Method Summary | |
public void | add(Accessor<BeanT, PropT> acc, Lister<BeanT, PropT, ItemT, PackT> lister, ItemT value) Adds a new item to this packing scope. | public void | finish() Finishes up the current packing in progress (if any) and
resets this object. | public boolean | hasStarted() Returns true if this scope object is filled by a packing in progress. | public void | reset() Initializes all the fields to null. | public void | start(Accessor<BeanT, PropT> acc, Lister<BeanT, PropT, ItemT, PackT> lister) Starts the packing scope, without adding any item. |
add | public void add(Accessor<BeanT, PropT> acc, Lister<BeanT, PropT, ItemT, PackT> lister, ItemT value) throws SAXException(Code) | | Adds a new item to this packing scope.
|
finish | public void finish() throws AccessorException(Code) | | Finishes up the current packing in progress (if any) and
resets this object.
|
hasStarted | public boolean hasStarted()(Code) | | Returns true if this scope object is filled by a packing in progress.
|
reset | public void reset()(Code) | | Initializes all the fields to null.
|
start | public void start(Accessor<BeanT, PropT> acc, Lister<BeanT, PropT, ItemT, PackT> lister) throws SAXException(Code) | | Starts the packing scope, without adding any item.
This allows us to return an empty pack, thereby allowing the user
to distinguish empty array vs null array.
|
|
|