public abstract class AbstractSVGNumberList extends AbstractSVGList
SVGNumberList
.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSVGNumberList.NumberListBuilder
Helper class to interface the
NumberListParser and the
NumberListHandler . |
protected class |
AbstractSVGNumberList.SVGNumberItem
Representation of the item SVGNumber.
|
AbstractSVGList.ListBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SVG_NUMBER_LIST_SEPARATOR
Separator for a length list.
|
itemList, valid
Modifier | Constructor and Description |
---|---|
protected |
AbstractSVGNumberList()
Creates a new SVGNumberList.
|
Modifier and Type | Method and Description |
---|---|
SVGNumber |
appendItem(SVGNumber newItem)
DOM: Implements
SVGNumberList#appendItem(SVGNumber) . |
protected void |
checkItemType(java.lang.Object newItem)
Asserts that the given item object is an
SVGNumber . |
protected abstract SVGException |
createSVGException(short type,
java.lang.String key,
java.lang.Object[] args)
Create an SVGException when the
checkItemType(Object) fails. |
protected SVGItem |
createSVGItem(java.lang.Object newItem)
Creates a new
AbstractSVGNumberList.SVGNumberItem from the given SVGNumber . |
protected void |
doParse(java.lang.String value,
ListHandler handler)
Parse the attribute associated with this SVGNumberList.
|
protected abstract org.w3c.dom.Element |
getElement()
Returns the element associated with this SVGNumberList.
|
SVGNumber |
getItem(int index)
DOM: Implements
SVGNumberList#getItem(int) . |
protected java.lang.String |
getItemSeparator()
Return the separator between values in the list.
|
SVGNumber |
initialize(SVGNumber newItem)
DOM: Implements
SVGNumberList#initialize(SVGNumber) . |
SVGNumber |
insertItemBefore(SVGNumber newItem,
int index)
DOM: Implements
SVGNumberList#insertItemBefore(SVGNumber,int) . |
SVGNumber |
removeItem(int index)
DOM: Implements
SVGNumberList#removeItem(int) . |
SVGNumber |
replaceItem(SVGNumber newItem,
int index)
DOM: Implements
SVGNumberList#replaceItem(SVGNumber,int) . |
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
public static final java.lang.String SVG_NUMBER_LIST_SEPARATOR
protected AbstractSVGNumberList()
protected java.lang.String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
checkItemType(Object)
fails.protected abstract org.w3c.dom.Element getElement()
public SVGNumber initialize(SVGNumber newItem) throws org.w3c.dom.DOMException, SVGException
SVGNumberList#initialize(SVGNumber)
.org.w3c.dom.DOMException
SVGException
public SVGNumber getItem(int index) throws org.w3c.dom.DOMException
SVGNumberList#getItem(int)
.org.w3c.dom.DOMException
public SVGNumber insertItemBefore(SVGNumber newItem, int index) throws org.w3c.dom.DOMException, SVGException
SVGNumberList#insertItemBefore(SVGNumber,int)
.org.w3c.dom.DOMException
SVGException
public SVGNumber replaceItem(SVGNumber newItem, int index) throws org.w3c.dom.DOMException, SVGException
SVGNumberList#replaceItem(SVGNumber,int)
.org.w3c.dom.DOMException
SVGException
public SVGNumber removeItem(int index) throws org.w3c.dom.DOMException
SVGNumberList#removeItem(int)
.org.w3c.dom.DOMException
public SVGNumber appendItem(SVGNumber newItem) throws org.w3c.dom.DOMException, SVGException
SVGNumberList#appendItem(SVGNumber)
.org.w3c.dom.DOMException
SVGException
protected SVGItem createSVGItem(java.lang.Object newItem)
AbstractSVGNumberList.SVGNumberItem
from the given SVGNumber
.createSVGItem
in class AbstractSVGList
newItem
- the SVG objectSVGItem
objectprotected void doParse(java.lang.String value, ListHandler handler) throws ParseException
doParse
in class AbstractSVGList
value
- attribute valuehandler
- list handlerParseException
protected void checkItemType(java.lang.Object newItem) throws SVGException
SVGNumber
.checkItemType
in class AbstractSVGList
SVGException
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.