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$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classHelper class to interface theNumberListParserand theNumberListHandler. -
Field Summary
FieldsFields inherited from class AbstractSVGList
itemList, valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGNumberappendItem(org.w3c.dom.svg.SVGNumber newItem) DOM: ImplementsSVGNumberList.appendItem(SVGNumber).protected voidcheckItemType(Object newItem) Asserts that the given item object is anSVGNumber.protected abstract org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, String key, Object[] args) Create an SVGException when thecheckItemType(Object)fails.protected SVGItemcreateSVGItem(Object newItem) Creates a newSVGNumberItemfrom the givenSVGNumber.protected voiddoParse(String value, ListHandler handler) Parse the attribute associated with this SVGNumberList.protected abstract ElementReturns the element associated with this SVGNumberList.org.w3c.dom.svg.SVGNumbergetItem(int index) DOM: ImplementsSVGNumberList.getItem(int).protected StringReturn the separator between values in the list.org.w3c.dom.svg.SVGNumberinitialize(org.w3c.dom.svg.SVGNumber newItem) DOM: ImplementsSVGNumberList.initialize(SVGNumber).org.w3c.dom.svg.SVGNumberinsertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index) DOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber,int).org.w3c.dom.svg.SVGNumberremoveItem(int index) DOM: ImplementsSVGNumberList.removeItem(int).org.w3c.dom.svg.SVGNumberreplaceItem(org.w3c.dom.svg.SVGNumber newItem, int index) DOM: ImplementsSVGNumberList.replaceItem(SVGNumber,int).Methods inherited from class AbstractSVGList
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.svg.SVGNumberList
clear, getNumberOfItems
-
Field Details
-
SVG_NUMBER_LIST_SEPARATOR
-
-
Constructor Details
-
AbstractSVGNumberList
protected AbstractSVGNumberList()Creates a new SVGNumberList.
-
-
Method Details
-
getItemSeparator
Return the separator between values in the list.- Specified by:
getItemSeparatorin 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:
initializein interfaceorg.w3c.dom.svg.SVGNumberList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
getItem
DOM: ImplementsSVGNumberList.getItem(int).- Specified by:
getItemin 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:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGNumberList- Throws:
DOMExceptionorg.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:
replaceItemin interfaceorg.w3c.dom.svg.SVGNumberList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGNumberList.removeItem(int).- Specified by:
removeItemin 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:
appendItemin interfaceorg.w3c.dom.svg.SVGNumberList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
createSVGItem
Creates a newSVGNumberItemfrom the givenSVGNumber.- Specified by:
createSVGItemin classAbstractSVGList- Parameters:
newItem- the SVG object- Returns:
- the newly created
SVGItemobject
-
doParse
Parse the attribute associated with this SVGNumberList.- Specified by:
doParsein classAbstractSVGList- Parameters:
value- attribute valuehandler- list handler- Throws:
ParseException
-
checkItemType
Asserts that the given item object is anSVGNumber.- Specified by:
checkItemTypein classAbstractSVGList- Throws:
org.w3c.dom.svg.SVGException
-