com.skaringa.javaxml.serializers
Class ArrayHelper

java.lang.Object
  extended by com.skaringa.javaxml.serializers.ArrayHelper

public final class ArrayHelper
extends java.lang.Object

Class that helps with deserialization of arrays. A vector is used to back up the elements of an array.


Constructor Summary
ArrayHelper(java.util.Vector helper, java.lang.Class componentType)
          Construct a new ArrayHelper.
 
Method Summary
 void add(java.lang.Object element)
          Add a new element.
 java.lang.Object getArray()
          Get the array backed up by this helper.
 java.lang.Class getComponentType()
          Get the type of the elements of the array.
 java.util.Vector getVector()
          Get the vector that contains the elements of the array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayHelper

public ArrayHelper(java.util.Vector helper,
                   java.lang.Class componentType)
Construct a new ArrayHelper.

Parameters:
helper - A vector that contains the elements of the array.
componentType - The type of the elements of the array.
Method Detail

add

public void add(java.lang.Object element)
Add a new element.

Parameters:
element - The element.

getVector

public java.util.Vector getVector()
Get the vector that contains the elements of the array.

Returns:
Vector.

getComponentType

public java.lang.Class getComponentType()
Get the type of the elements of the array.

Returns:
The type.

getArray

public java.lang.Object getArray()
Get the array backed up by this helper.

Returns:
An array object containing all elements.