Class UnmarshalHandler.ArrayHandler

  • Enclosing class:
    UnmarshalHandler

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

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Class<?> _componentType  
      (package private) java.util.ArrayList<java.lang.Object> _items  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayHandler​(java.lang.Class<?> componentType)
      Creates a new ArrayHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addObject​(java.lang.Object obj)
      Adds the given object to the underlying array.
      java.lang.Class<?> componentType()
      Returns the component type handled by this class.
      java.lang.Object getObject()
      Returns the data handled by this class as an array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _componentType

        java.lang.Class<?> _componentType
      • _items

        java.util.ArrayList<java.lang.Object> _items
    • Constructor Detail

      • ArrayHandler

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

      • addObject

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

        public java.lang.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 java.lang.Class<?> componentType()
        Returns the component type handled by this class.
        Returns:
        The component type handled by this class.