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.- Version:
- $Id: AbstractSVGNumberList.java 1831635 2018-05-15 13:33:47Z ssteiner $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractSVGNumberList.NumberListBuilderHelper class to interface theNumberListParserand theNumberListHandler.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSVG_NUMBER_LIST_SEPARATORSeparator for a length list.-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSVGNumberList()Creates a new SVGNumberList.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGNumberappendItem(org.w3c.dom.svg.SVGNumber newItem)DOM: ImplementsSVGNumberList.appendItem(SVGNumber).protected voidcheckItemType(java.lang.Object newItem)Asserts that the given item object is anSVGNumber.protected abstract org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, java.lang.String key, java.lang.Object[] args)Create an SVGException when thecheckItemType(Object)fails.protected SVGItemcreateSVGItem(java.lang.Object newItem)Creates a newSVGNumberItemfrom the givenSVGNumber.protected voiddoParse(java.lang.String value, ListHandler handler)Parse the attribute associated with this SVGNumberList.protected abstract org.w3c.dom.ElementgetElement()Returns the element associated with this SVGNumberList.org.w3c.dom.svg.SVGNumbergetItem(int index)DOM: ImplementsSVGNumberList.getItem(int).protected java.lang.StringgetItemSeparator()Return 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 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:
getItemSeparatorin 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.SVGExceptionDOM: ImplementsSVGNumberList.initialize(SVGNumber).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGNumberList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
getItem
public org.w3c.dom.svg.SVGNumber getItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGNumberList.getItem(int).- Specified by:
getItemin 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.SVGExceptionDOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber,int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGNumberList- Throws:
org.w3c.dom.DOMExceptionorg.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.SVGExceptionDOM: ImplementsSVGNumberList.replaceItem(SVGNumber,int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGNumberList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGNumber removeItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGNumberList.removeItem(int).- Specified by:
removeItemin 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.SVGExceptionDOM: ImplementsSVGNumberList.appendItem(SVGNumber).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGNumberList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
createSVGItem
protected SVGItem createSVGItem(java.lang.Object newItem)
Creates a newSVGNumberItemfrom the givenSVGNumber.- Specified by:
createSVGItemin classAbstractSVGList- Parameters:
newItem- the SVG object- Returns:
- the newly created
SVGItemobject
-
doParse
protected void doParse(java.lang.String value, ListHandler handler) throws ParseExceptionParse the attribute associated with this SVGNumberList.- Specified by:
doParsein classAbstractSVGList- Parameters:
value- attribute valuehandler- list handler- Throws:
ParseException
-
checkItemType
protected void checkItemType(java.lang.Object newItem) throws org.w3c.dom.svg.SVGExceptionAsserts that the given item object is anSVGNumber.- Specified by:
checkItemTypein classAbstractSVGList- Throws:
org.w3c.dom.svg.SVGException
-
-