Class UnmarshalHandler.ArrayHandler

java.lang.Object
org.exolab.castor.xml.UnmarshalHandler.ArrayHandler
Enclosing class:
UnmarshalHandler

public static class UnmarshalHandler.ArrayHandler extends Object
A class for handling Arrays during unmarshalling.
Author:
kvisco@intalio.com
  • Field Details

  • Constructor Details

    • ArrayHandler

      ArrayHandler(Class<?> componentType)
      Creates a new ArrayHandler
      Parameters:
      componentType - the ComponentType for the array.
  • Method Details

    • addObject

      public void addObject(Object obj)
      Adds the given object to the underlying array.
      Parameters:
      obj - The object to be added to the underlying array.
    • getObject

      public Object getObject()
      Returns the data handled by this class as an array.
      Returns:
      The data handled internally in the form of an array.
    • componentType

      public Class<?> componentType()
      Returns the component type handled by this class.
      Returns:
      The component type handled by this class.