When no packing is started yet, all the fields should be set to null.
| Modifier and Type | Field and Description |
|---|---|
| private Accessor | |
| private BeanT | |
| public final UnmarshallingContext | |
| private Lister | |
| private PackT |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private boolean | |
| public void | |
| public boolean | |
| public void | |
| public void |
| acc | back to summary |
|---|---|
| private Accessor<BeanT, PropT> acc | |
| bean | back to summary |
|---|---|
| private BeanT bean | |
| context | back to summary |
|---|---|
| public final UnmarshallingContext context | |
| lister | back to summary |
|---|---|
| private Lister<BeanT, PropT, ItemT, PackT> lister | |
| pack | back to summary |
|---|---|
| private PackT pack | |
| Scope | back to summary |
|---|---|
| pack-priv Scope(UnmarshallingContext context) | |
| add | back to summary |
|---|---|
| public void add(Accessor<BeanT, PropT> acc, Lister<BeanT, PropT, ItemT, PackT> lister, ItemT value) throws SAXException Adds a new item to this packing scope. | |
| clean | back to summary |
|---|---|
| private boolean clean() | |
| finish | back to summary |
|---|---|
| public void finish() throws AccessorException Finishes up the current packing in progress (if any) and resets this object. | |
| hasStarted | back to summary |
|---|---|
| public boolean hasStarted() Returns true if this scope object is filled by a packing in progress. | |
| reset | back to summary |
|---|---|
| public void reset() Initializes all the fields to null. | |
| start | back to summary |
|---|---|
| public void start(Accessor<BeanT, PropT> acc, Lister<BeanT, PropT, ItemT, PackT> lister) throws SAXException 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. | |