org.apache.batik.dom.svg

Class AbstractSVGNumberList

public abstract class AbstractSVGNumberList extends AbstractSVGList implements SVGNumberList

This class is the implementation of {@link SVGNumberList}.
Nested Class Summary
protected classAbstractSVGNumberList.NumberListBuilder
Helper class to interface the {@link NumberListParser} and the {@link 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 {@link SVGNumberList#appendItem(SVGNumber)}.
protected voidcheckItemType(Object newItem)
Asserts that the given item object is an {@link SVGNumber}.
protected abstract SVGExceptioncreateSVGException(short type, String key, Object[] args)
Create an SVGException when the {@link #checkItemType(Object)} fails.
protected SVGItemcreateSVGItem(Object newItem)
Creates a new {@link SVGNumberItem} from the given {@link 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 {@link SVGNumberList#getItem(int)}.
protected StringgetItemSeparator()
Return the separator between values in the list.
SVGNumberinitialize(SVGNumber newItem)
DOM: Implements {@link SVGNumberList#initialize(SVGNumber)}.
SVGNumberinsertItemBefore(SVGNumber newItem, int index)
DOM: Implements {@link SVGNumberList#insertItemBefore(SVGNumber,int)}.
SVGNumberremoveItem(int index)
DOM: Implements {@link SVGNumberList#removeItem(int)}.
SVGNumberreplaceItem(SVGNumber newItem, int index)
DOM: Implements {@link 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 {@link SVGNumberList#appendItem(SVGNumber)}.

checkItemType

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

createSVGException

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

createSVGItem

protected SVGItem createSVGItem(Object newItem)
Creates a new {@link SVGNumberItem} from the given {@link 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 {@link SVGNumberList#getItem(int)}.

getItemSeparator

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

initialize

public SVGNumber initialize(SVGNumber newItem)
DOM: Implements {@link SVGNumberList#initialize(SVGNumber)}.

insertItemBefore

public SVGNumber insertItemBefore(SVGNumber newItem, int index)
DOM: Implements {@link SVGNumberList#insertItemBefore(SVGNumber,int)}.

removeItem

public SVGNumber removeItem(int index)
DOM: Implements {@link SVGNumberList#removeItem(int)}.

replaceItem

public SVGNumber replaceItem(SVGNumber newItem, int index)
DOM: Implements {@link SVGNumberList#replaceItem(SVGNumber,int)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.