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 AbstractSVGListabstractSVGListprotected java.util.ListlistThe list being built.
-
Constructor Summary
Constructors Constructor Description ListBuilder(AbstractSVGList abstractSVGList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendList()Ends the construction of the list.java.util.ListgetList()Returns the newly created list.voiditem(SVGItem item)Adds an item to the list.voidstartList()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:
startListin interfaceListHandler
-
item
public void item(SVGItem item)
Adds an item to the list.- Specified by:
itemin interfaceListHandler- Parameters:
item- the new item to be added
-
endList
public void endList()
Ends the construction of the list.- Specified by:
endListin interfaceListHandler
-
-