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 of
SVGNumberList
.- Version:
- $Id: AbstractSVGNumberList.java 1831635 2018-05-15 13:33:47Z ssteiner $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Helper class to interface theNumberListParser
and theNumberListHandler
. -
Field Summary
FieldsFields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGNumber
appendItem
(org.w3c.dom.svg.SVGNumber newItem) DOM: ImplementsSVGNumberList.appendItem(SVGNumber)
.protected void
checkItemType
(Object newItem) Asserts that the given item object is anSVGNumber
.protected abstract org.w3c.dom.svg.SVGException
createSVGException
(short type, String key, Object[] args) Create an SVGException when thecheckItemType(Object)
fails.protected SVGItem
createSVGItem
(Object newItem) Creates a newSVGNumberItem
from the givenSVGNumber
.protected void
doParse
(String value, ListHandler handler) Parse the attribute associated with this SVGNumberList.protected abstract Element
Returns the element associated with this SVGNumberList.org.w3c.dom.svg.SVGNumber
getItem
(int index) DOM: ImplementsSVGNumberList.getItem(int)
.protected String
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.w3c.dom.svg.SVGNumberList
clear, getNumberOfItems
-
Field Details
-
SVG_NUMBER_LIST_SEPARATOR
Separator for a length list.- See Also:
-
-
Constructor Details
-
AbstractSVGNumberList
protected AbstractSVGNumberList()Creates a new SVGNumberList.
-
-
Method Details
-
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, String key, Object[] args) Create an SVGException when thecheckItemType(Object)
fails. -
getElement
Returns the element associated with this SVGNumberList. -
initialize
public org.w3c.dom.svg.SVGNumber initialize(org.w3c.dom.svg.SVGNumber newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGNumberList.initialize(SVGNumber)
.- Specified by:
initialize
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
getItem
DOM: ImplementsSVGNumberList.getItem(int)
.- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGNumber insertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber,int)
.- Specified by:
insertItemBefore
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGNumber replaceItem(org.w3c.dom.svg.SVGNumber newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGNumberList.replaceItem(SVGNumber,int)
.- Specified by:
replaceItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGNumberList.removeItem(int)
.- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
DOMException
-
appendItem
public org.w3c.dom.svg.SVGNumber appendItem(org.w3c.dom.svg.SVGNumber newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGNumberList.appendItem(SVGNumber)
.- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
createSVGItem
Creates a newSVGNumberItem
from the givenSVGNumber
.- Specified by:
createSVGItem
in classAbstractSVGList
- Parameters:
newItem
- the SVG object- Returns:
- the newly created
SVGItem
object
-
doParse
Parse the attribute associated with this SVGNumberList.- Specified by:
doParse
in classAbstractSVGList
- Parameters:
value
- attribute valuehandler
- list handler- Throws:
ParseException
-
checkItemType
Asserts that the given item object is anSVGNumber
.- Specified by:
checkItemType
in classAbstractSVGList
- Throws:
org.w3c.dom.svg.SVGException
-