Class SimpleArrayHandler

  • All Implemented Interfaces:
    TagHandler

    public class SimpleArrayHandler
    extends java.lang.Object
    implements TagHandler
    Returns an array of non null children, flattening nested arrays and Lists.
    Author:
    Richard Morris
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doChild​(java.util.List<java.lang.Object> list, java.lang.Object child, int level)  
      static SimpleArrayHandler getInstance()  
      java.lang.Object handle​(StackFrame frame, org.xml.sax.Locator loc)
      Transform the element, called when a closing tag is encountered.
      • Methods inherited from class java.lang.Object

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

      • SimpleArrayHandler

        public SimpleArrayHandler()
    • Method Detail

      • handle

        public java.lang.Object handle​(StackFrame frame,
                                       org.xml.sax.Locator loc)
                                throws org.xml.sax.SAXParseException
        Description copied from interface: TagHandler
        Transform the element, called when a closing tag is encountered.
        Specified by:
        handle in interface TagHandler
        Parameters:
        frame - StackFrame representing the element
        loc - location in input
        Returns:
        typically a Node, other types of objects may also be returned when the tag has a special meaning for its parent node.
        Throws:
        org.xml.sax.SAXParseException
      • doChild

        protected void doChild​(java.util.List<java.lang.Object> list,
                               java.lang.Object child,
                               int level)