org.apache.batik.dom.svg

Class AbstractSVGNumberList

public abstract class AbstractSVGNumberList extends AbstractSVGList implements SVGNumberList

This class is the implementation of SVGNumberList.
Nested Class Summary
protected classAbstractSVGNumberList.NumberListBuilder
Helper class to interface the NumberListParser and the NumberListHandler.
protected classAbstractSVGNumberList.SVGNumberItem
Representation of the item SVGNumber.
Field Summary
static StringSVG_NUMBER_LIST_SEPARATOR
Separator for a length list.
Constructor Summary
protected AbstractSVGNumberList()
Creates a new SVGNumberList.
Method Summary
SVGNumberappendItem(SVGNumber newItem)
DOM: Implements SVGNumberList#appendItem(SVGNumber).
protected voidcheckItemType(Object newItem)
Asserts that the given item object is an SVGNumber.
protected abstract SVGExceptioncreateSVGException(short type, String key, Object[] args)
Create an SVGException when the checkItemType fails.
protected SVGItemcreateSVGItem(Object newItem)
Creates a new SVGNumberItem from the given SVGNumber.
protected voiddoParse(String value, ListHandler handler)
Parse the attribute associated with this SVGNumberList.
protected abstract ElementgetElement()
Returns the element associated with this SVGNumberList.
SVGNumbergetItem(int index)
DOM: Implements SVGNumberList#getItem(int).
protected StringgetItemSeparator()
Return the separator between values in the list.
SVGNumberinitialize(SVGNumber newItem)
DOM: Implements SVGNumberList#initialize(SVGNumber).
SVGNumberinsertItemBefore(SVGNumber newItem, int index)
DOM: Implements SVGNumberList#insertItemBefore(SVGNumber,int).
SVGNumberremoveItem(int index)
DOM: Implements SVGNumberList#removeItem(int).
SVGNumberreplaceItem(SVGNumber newItem, int index)
DOM: Implements SVGNumberList#replaceItem(SVGNumber,int).

Field Detail

SVG_NUMBER_LIST_SEPARATOR

public static final String SVG_NUMBER_LIST_SEPARATOR
Separator for a length list.

Constructor Detail

AbstractSVGNumberList

protected AbstractSVGNumberList()
Creates a new SVGNumberList.

Method Detail

appendItem

public SVGNumber appendItem(SVGNumber newItem)
DOM: Implements SVGNumberList#appendItem(SVGNumber).

checkItemType

protected void checkItemType(Object newItem)
Asserts that the given item object is an SVGNumber.

createSVGException

protected abstract SVGException createSVGException(short type, String key, Object[] args)
Create an SVGException when the checkItemType fails.

createSVGItem

protected SVGItem createSVGItem(Object newItem)
Creates a new SVGNumberItem from the given SVGNumber.

doParse

protected void doParse(String value, ListHandler handler)
Parse the attribute associated with this SVGNumberList.

Parameters: value attribute value handler list handler

getElement

protected abstract Element getElement()
Returns the element associated with this SVGNumberList.

getItem

public SVGNumber getItem(int index)
DOM: Implements SVGNumberList#getItem(int).

getItemSeparator

protected String getItemSeparator()
Return the separator between values in the list.

initialize

public SVGNumber initialize(SVGNumber newItem)
DOM: Implements SVGNumberList#initialize(SVGNumber).

insertItemBefore

public SVGNumber insertItemBefore(SVGNumber newItem, int index)
DOM: Implements SVGNumberList#insertItemBefore(SVGNumber,int).

removeItem

public SVGNumber removeItem(int index)
DOM: Implements SVGNumberList#removeItem(int).

replaceItem

public SVGNumber replaceItem(SVGNumber newItem, int index)
DOM: Implements SVGNumberList#replaceItem(SVGNumber,int).
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.