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 $
  • Field Details

    • SVG_NUMBER_LIST_SEPARATOR

      public static final String SVG_NUMBER_LIST_SEPARATOR
      Separator for a length list.
      See Also:
  • Constructor Details

    • AbstractSVGNumberList

      protected AbstractSVGNumberList()
      Creates a new SVGNumberList.
  • Method Details

    • getItemSeparator

      protected String getItemSeparator()
      Return the separator between values in the list.
      Specified by:
      getItemSeparator in class AbstractSVGList
    • createSVGException

      protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, String key, Object[] args)
      Create an SVGException when the checkItemType(Object) fails.
    • getElement

      protected abstract Element 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: Implements SVGNumberList.initialize(SVGNumber).
      Specified by:
      initialize in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • getItem

      public org.w3c.dom.svg.SVGNumber getItem(int index) throws DOMException
      DOM: Implements SVGNumberList.getItem(int).
      Specified by:
      getItem in interface org.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: Implements SVGNumberList.insertItemBefore(SVGNumber,int).
      Specified by:
      insertItemBefore in interface org.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: Implements SVGNumberList.replaceItem(SVGNumber,int).
      Specified by:
      replaceItem in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • removeItem

      public org.w3c.dom.svg.SVGNumber removeItem(int index) throws DOMException
      DOM: Implements SVGNumberList.removeItem(int).
      Specified by:
      removeItem in interface org.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: Implements SVGNumberList.appendItem(SVGNumber).
      Specified by:
      appendItem in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
      org.w3c.dom.svg.SVGException
    • createSVGItem

      protected SVGItem createSVGItem(Object newItem)
      Creates a new SVGNumberItem from the given SVGNumber.
      Specified by:
      createSVGItem in class AbstractSVGList
      Parameters:
      newItem - the SVG object
      Returns:
      the newly created SVGItem object
    • doParse

      protected void doParse(String value, ListHandler handler) throws ParseException
      Parse the attribute associated with this SVGNumberList.
      Specified by:
      doParse in class AbstractSVGList
      Parameters:
      value - attribute value
      handler - list handler
      Throws:
      ParseException
    • checkItemType

      protected void checkItemType(Object newItem) throws org.w3c.dom.svg.SVGException
      Asserts that the given item object is an SVGNumber.
      Specified by:
      checkItemType in class AbstractSVGList
      Throws:
      org.w3c.dom.svg.SVGException