Package org.apache.batik.dom.svg
Class ListBuilder
- java.lang.Object
-
- org.apache.batik.dom.svg.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 private AbstractSVGList
abstractSVGList
protected java.util.List
list
The list being built.
-
Constructor Summary
Constructors Constructor Description ListBuilder(AbstractSVGList abstractSVGList)
-
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.
-
-
-
Field Detail
-
abstractSVGList
private final AbstractSVGList abstractSVGList
-
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 interfaceListHandler
-
item
public void item(SVGItem item)
Adds an item to the list.- Specified by:
item
in interfaceListHandler
- Parameters:
item
- the new item to be added
-
endList
public void endList()
Ends the construction of the list.- Specified by:
endList
in interfaceListHandler
-
-