Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.dom.svg
Class AbstractSVGNumberList  view AbstractSVGNumberList download AbstractSVGNumberList.java

java.lang.Object
  extended byorg.apache.batik.dom.svg.AbstractSVGList
      extended byorg.apache.batik.dom.svg.AbstractSVGNumberList
All Implemented Interfaces:
org.w3c.dom.svg.SVGNumberList
Direct Known Subclasses:
SVGOMAnimatedNumberList.SVGOMNumberList

public abstract class AbstractSVGNumberList
extends AbstractSVGList
implements org.w3c.dom.svg.SVGNumberList

This class is the implementation of SVGNumberList.


Nested Class Summary
protected  class AbstractSVGNumberList.NumberListBuilder
          Helper class to interface the NumberListParser and the NumberHandler
protected  class AbstractSVGNumberList.SVGNumberItem
          Representation of the item SVGNumber.
 
Nested classes inherited from class org.apache.batik.dom.svg.AbstractSVGList
AbstractSVGList.ListBuilder
 
Field Summary
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
protected AbstractSVGNumberList()
          Creates a new SVGNumberList.
 
Method Summary
 org.w3c.dom.svg.SVGNumber appendItem(org.w3c.dom.svg.SVGNumber newItem)
           
protected  void checkItemType(java.lang.Object newItem)
          Check if the item is an SVGNumber
protected abstract  org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
          Create an SVGException when the checkItemType fails.
protected  SVGItem createSVGItem(java.lang.Object newItem)
          Return the item to be placed in the list.
protected  void doParse(java.lang.String value, ListHandler handler)
          Parse the attribute associated with this SVGNumberList.
protected abstract  org.w3c.dom.Element getElement()
          return the element owning this SVGNumberList.
 org.w3c.dom.svg.SVGNumber getItem(int index)
           
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)
           
 org.w3c.dom.svg.SVGNumber insertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index)
           
 org.w3c.dom.svg.SVGNumber removeItem(int index)
           
 org.w3c.dom.svg.SVGNumber replaceItem(org.w3c.dom.svg.SVGNumber newItem, int index)
           
 
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 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
Constructor Detail

AbstractSVGNumberList

protected AbstractSVGNumberList()
Creates a new SVGNumberList.

Method Detail

getItemSeparator

protected java.lang.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,
                                                                   java.lang.String key,
                                                                   java.lang.Object[] args)
Create an SVGException when the checkItemType fails.


getElement

protected abstract org.w3c.dom.Element getElement()
return the element owning 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
Specified by:
initialize in interface org.w3c.dom.svg.SVGNumberList

getItem

public org.w3c.dom.svg.SVGNumber getItem(int index)
                                  throws org.w3c.dom.DOMException
Specified by:
getItem in interface org.w3c.dom.svg.SVGNumberList

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
Specified by:
insertItemBefore in interface org.w3c.dom.svg.SVGNumberList

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
Specified by:
replaceItem in interface org.w3c.dom.svg.SVGNumberList

removeItem

public org.w3c.dom.svg.SVGNumber removeItem(int index)
                                     throws org.w3c.dom.DOMException
Specified by:
removeItem in interface org.w3c.dom.svg.SVGNumberList

appendItem

public org.w3c.dom.svg.SVGNumber appendItem(org.w3c.dom.svg.SVGNumber newItem)
                                     throws org.w3c.dom.DOMException,
                                            org.w3c.dom.svg.SVGException
Specified by:
appendItem in interface org.w3c.dom.svg.SVGNumberList

createSVGItem

protected SVGItem createSVGItem(java.lang.Object newItem)
Description copied from class: AbstractSVGList
Return the item to be placed in the list. According to the parameter of the real SVGList represented here by an Object the implementation provide an item to be placed in the list.

Specified by:
createSVGItem in class AbstractSVGList

doParse

protected void doParse(java.lang.String value,
                       ListHandler handler)
                throws org.apache.batik.parser.ParseException
Parse the attribute associated with this SVGNumberList.

Specified by:
doParse in class AbstractSVGList

checkItemType

protected void checkItemType(java.lang.Object newItem)
                      throws org.w3c.dom.svg.SVGException
Check if the item is an SVGNumber

Specified by:
checkItemType in class AbstractSVGList