com.sun.xml.bind.v2.runtime.reflect
Class PrimitiveArrayListerByte<BeanT>

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.reflect.Lister<BeanT,byte[],Byte,PrimitiveArrayListerByte.ByteArrayPack>
      extended by com.sun.xml.bind.v2.runtime.reflect.PrimitiveArrayListerByte<BeanT>

final class PrimitiveArrayListerByte<BeanT>
extends Lister<BeanT,byte[],Byte,PrimitiveArrayListerByte.ByteArrayPack>

Lister for primitive type arrays.

B y t e ArrayLister is used as the master to generate the rest of the lister classes. Do not modify the generated copies.


Nested Class Summary
(package private) static class PrimitiveArrayListerByte.ByteArrayPack
           
 
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
 
Fields inherited from class com.sun.xml.bind.v2.runtime.reflect.Lister
ERROR, primitiveArrayListers
 
Method Summary
 void addToPack(PrimitiveArrayListerByte.ByteArrayPack objects, Byte 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(PrimitiveArrayListerByte.ByteArrayPack pack, BeanT bean, Accessor<BeanT,byte[]> acc)
          Finally, call this method to wraps up the pack.
 ListIterator<Byte> iterator(byte[] objects, XMLSerializer context)
          Iterates values of a multi-value property.
(package private) static void register()
           
 void reset(BeanT o, Accessor<BeanT,byte[]> acc)
          Clears the values of the property.
 PrimitiveArrayListerByte.ByteArrayPack startPacking(BeanT current, Accessor<BeanT,byte[]> 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

static void register()

iterator

public ListIterator<Byte> iterator(byte[] objects,
                                   XMLSerializer context)
Description copied from class: Lister
Iterates values of a multi-value property.

Specified by:
iterator in class Lister<BeanT,byte[],Byte,PrimitiveArrayListerByte.ByteArrayPack>
context - This parameter is used to support ID/IDREF handling.

startPacking

public PrimitiveArrayListerByte.ByteArrayPack startPacking(BeanT current,
                                                           Accessor<BeanT,byte[]> acc)
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,byte[],Byte,PrimitiveArrayListerByte.ByteArrayPack>

addToPack

public void addToPack(PrimitiveArrayListerByte.ByteArrayPack objects,
                      Byte 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,byte[],Byte,PrimitiveArrayListerByte.ByteArrayPack>

endPacking

public void endPacking(PrimitiveArrayListerByte.ByteArrayPack pack,
                       BeanT bean,
                       Accessor<BeanT,byte[]> 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,byte[],Byte,PrimitiveArrayListerByte.ByteArrayPack>
Throws:
AccessorException

reset

public void reset(BeanT o,
                  Accessor<BeanT,byte[]> acc)
           throws AccessorException
Description copied from class: Lister
Clears the values of the property.

Specified by:
reset in class Lister<BeanT,byte[],Byte,PrimitiveArrayListerByte.ByteArrayPack>
Throws:
AccessorException