public class ListBuilder extends java.lang.Object implements ListHandler
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
list
The list being built.
|
Constructor and Description |
---|
ListBuilder(AbstractSVGList abstractSVGList) |
Modifier and Type | Method and 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.
|
public ListBuilder(AbstractSVGList abstractSVGList)
abstractSVGList
- public java.util.List getList()
public void startList()
startList
in interface ListHandler
public void item(SVGItem item)
item
in interface ListHandler
item
- the new item to be addedpublic void endList()
endList
in interface ListHandler
Copyright © 2022 Apache Software Foundation. All Rights Reserved.