Package org.apache.batik.dom.svg
Class AbstractSVGNumberList
- java.lang.Object
-
- org.apache.batik.dom.svg.AbstractSVGList
-
- org.apache.batik.dom.svg.AbstractSVGNumberList
-
- All Implemented Interfaces:
org.w3c.dom.svg.SVGNumberList
- Direct Known Subclasses:
SVGOMAnimatedNumberList.AnimSVGNumberList
,SVGOMAnimatedNumberList.BaseSVGNumberList
public abstract class AbstractSVGNumberList extends AbstractSVGList implements org.w3c.dom.svg.SVGNumberList
This class is the implementation ofSVGNumberList
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AbstractSVGNumberList.NumberListBuilder
Helper class to interface theNumberListParser
and theNumberListHandler
.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SVG_NUMBER_LIST_SEPARATOR
Separator for a length list.-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSVGNumberList()
Creates a new SVGNumberList.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGNumber
appendItem(org.w3c.dom.svg.SVGNumber newItem)
DOM: ImplementsSVGNumberList.appendItem(SVGNumber)
.protected void
checkItemType(java.lang.Object newItem)
Asserts that the given item object is anSVGNumber
.protected abstract org.w3c.dom.svg.SVGException
createSVGException(short type, java.lang.String key, java.lang.Object[] args)
Create an SVGException when thecheckItemType(Object)
fails.protected SVGItem
createSVGItem(java.lang.Object newItem)
Creates a newSVGNumberItem
from the givenSVGNumber
.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.org.w3c.dom.svg.SVGNumber
getItem(int index)
DOM: ImplementsSVGNumberList.getItem(int)
.protected java.lang.String
getItemSeparator()
Return the separator between values in the list.org.w3c.dom.svg.SVGNumber
initialize(org.w3c.dom.svg.SVGNumber newItem)
DOM: ImplementsSVGNumberList.initialize(SVGNumber)
.org.w3c.dom.svg.SVGNumber
insertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index)
DOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber,int)
.org.w3c.dom.svg.SVGNumber
removeItem(int index)
DOM: ImplementsSVGNumberList.removeItem(int)
.org.w3c.dom.svg.SVGNumber
replaceItem(org.w3c.dom.svg.SVGNumber newItem, int index)
DOM: ImplementsSVGNumberList.replaceItem(SVGNumber,int)
.-
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGList
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
-
-
-
-
Field Detail
-
SVG_NUMBER_LIST_SEPARATOR
public static final java.lang.String SVG_NUMBER_LIST_SEPARATOR
Separator for a length list.- See Also:
- Constant Field Values
-
-
Method Detail
-
getItemSeparator
protected java.lang.String getItemSeparator()
Return the separator between values in the list.- Specified by:
getItemSeparator
in classAbstractSVGList
-
createSVGException
protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
Create an SVGException when thecheckItemType(Object)
fails.
-
getElement
protected abstract org.w3c.dom.Element getElement()
Returns the element associated with this SVGNumberList.
-
initialize
public org.w3c.dom.svg.SVGNumber initialize(org.w3c.dom.svg.SVGNumber newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
DOM: ImplementsSVGNumberList.initialize(SVGNumber)
.- Specified by:
initialize
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
getItem
public org.w3c.dom.svg.SVGNumber getItem(int index) throws org.w3c.dom.DOMException
DOM: ImplementsSVGNumberList.getItem(int)
.- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
org.w3c.dom.DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGNumber insertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
DOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber,int)
.- Specified by:
insertItemBefore
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGNumber replaceItem(org.w3c.dom.svg.SVGNumber newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
DOM: ImplementsSVGNumberList.replaceItem(SVGNumber,int)
.- Specified by:
replaceItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGNumber removeItem(int index) throws org.w3c.dom.DOMException
DOM: ImplementsSVGNumberList.removeItem(int)
.- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
org.w3c.dom.DOMException
-
appendItem
public org.w3c.dom.svg.SVGNumber appendItem(org.w3c.dom.svg.SVGNumber newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
DOM: ImplementsSVGNumberList.appendItem(SVGNumber)
.- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
createSVGItem
protected SVGItem createSVGItem(java.lang.Object newItem)
Creates a newSVGNumberItem
from the givenSVGNumber
.- Specified by:
createSVGItem
in classAbstractSVGList
- Parameters:
newItem
- the SVG object- Returns:
- the newly created
SVGItem
object
-
doParse
protected void doParse(java.lang.String value, ListHandler handler) throws ParseException
Parse the attribute associated with this SVGNumberList.- Specified by:
doParse
in classAbstractSVGList
- Parameters:
value
- attribute valuehandler
- list handler- Throws:
ParseException
-
checkItemType
protected void checkItemType(java.lang.Object newItem) throws org.w3c.dom.svg.SVGException
Asserts that the given item object is anSVGNumber
.- Specified by:
checkItemType
in classAbstractSVGList
- Throws:
org.w3c.dom.svg.SVGException
-
-