org.apache.batik.css.svg
Class SVGCSSNumberList

java.lang.Object
  |
  +--org.apache.batik.css.svg.SVGCSSNumberList
All Implemented Interfaces:
SVGNumberList
Direct Known Subclasses:
SVGCSSReadOnlyNumberList

public class SVGCSSNumberList
extends java.lang.Object
implements SVGNumberList

This class provides an implementation of SVGNumberList.


Field Summary
protected  java.util.List list
          The underlying list.
 
Constructor Summary
SVGCSSNumberList()
           
 
Method Summary
 SVGNumber appendItem(SVGNumber item)
          Appends the item at the given index.
 void clear()
          Clears this list.
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 SVGNumber getItem(int index)
          Returns the item at the given index.
 java.util.List getList()
          Returns the underlying list.
 int getNumberOfItems()
          returns the number of items in this list.
 SVGNumber initialize(SVGNumber item)
          Initializes this list with the given item.
 SVGNumber insertItemBefore(SVGNumber item, int index)
          Inserts the given item at the given index.
 SVGNumber removeItem(int index)
          Removes the item at the given index.
 SVGNumber replaceItem(SVGNumber item, int index)
          Inserts the item at the given index.
 java.lang.String toString()
          Returns a printable representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected java.util.List list
The underlying list.
Constructor Detail

SVGCSSNumberList

public SVGCSSNumberList()
Method Detail

getList

public java.util.List getList()
Returns the underlying list.

getNumberOfItems

public int getNumberOfItems()
returns the number of items in this list.
Specified by:
getNumberOfItems in interface SVGNumberList

clear

public void clear()
           throws DOMException
Clears this list.
Specified by:
clear in interface SVGNumberList

initialize

public SVGNumber initialize(SVGNumber item)
                     throws DOMException,
                            SVGException
Initializes this list with the given item.
Specified by:
initialize in interface SVGNumberList

getItem

public SVGNumber getItem(int index)
                  throws DOMException
Returns the item at the given index.
Specified by:
getItem in interface SVGNumberList

insertItemBefore

public SVGNumber insertItemBefore(SVGNumber item,
                                  int index)
                           throws DOMException,
                                  SVGException
Inserts the given item at the given index.
Specified by:
insertItemBefore in interface SVGNumberList

replaceItem

public SVGNumber replaceItem(SVGNumber item,
                             int index)
                      throws DOMException,
                             SVGException
Inserts the item at the given index.
Specified by:
replaceItem in interface SVGNumberList

removeItem

public SVGNumber removeItem(int index)
                     throws DOMException
Removes the item at the given index.
Specified by:
removeItem in interface SVGNumberList

appendItem

public SVGNumber appendItem(SVGNumber item)
                     throws DOMException,
                            SVGException
Appends the item at the given index.
Specified by:
appendItem in interface SVGNumberList

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.

toString

public java.lang.String toString()
Returns a printable representation of this object.
Overrides:
toString in class java.lang.Object


Copyright © 2001 Apache Software Foundation. All Rights Reserved.