Class ListBuilder

  • All Implemented Interfaces:
    ListHandler

    public class ListBuilder
    extends java.lang.Object
    implements ListHandler
    A class for receiving notification of parsed list items.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List list
      The list being built.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endList()
      Ends the construction of the list.
      java.util.List getList()
      Returns the newly created list.
      void item​(SVGItem item)
      Adds an item to the list.
      void startList()
      Begins the construction of the list.
      • Methods inherited from class java.lang.Object

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

      • list

        protected java.util.List list
        The list being built.
    • Constructor Detail

      • ListBuilder

        public ListBuilder​(AbstractSVGList abstractSVGList)
        Parameters:
        abstractSVGList -
    • Method Detail

      • getList

        public java.util.List getList()
        Returns the newly created list.
      • startList

        public void startList()
        Begins the construction of the list.
        Specified by:
        startList in interface ListHandler
      • item

        public void item​(SVGItem item)
        Adds an item to the list.
        Specified by:
        item in interface ListHandler
        Parameters:
        item - the new item to be added
      • endList

        public void endList()
        Ends the construction of the list.
        Specified by:
        endList in interface ListHandler