org.apache.batik.dom.svg

Class AbstractSVGItem

public abstract class AbstractSVGItem extends Object implements SVGItem

Adapter for the SVGItem interface.
Field Summary
protected StringitemStringValue
String representation of the item.
protected AbstractSVGListparent
List the item belongs to.
Constructor Summary
protected AbstractSVGItem()
Creates a new AbstractSVGList.
Method Summary
AbstractSVGListgetParent()
Returns the parent list of this item.
protected abstract StringgetStringValue()
Return the string representation of the item.
StringgetValueAsString()
Returns the cached representation of the item if valid, otherwise recomputes the String representation of the item.
protected voidresetAttribute()
Notifies the parent list that the item has changed.
voidsetParent(AbstractSVGList list)
Assigns a parent list to this item.

Field Detail

itemStringValue

protected String itemStringValue
String representation of the item. This is a cached representation of the item while it is not changed.

parent

protected AbstractSVGList parent
List the item belongs to.

Constructor Detail

AbstractSVGItem

protected AbstractSVGItem()
Creates a new AbstractSVGList.

Method Detail

getParent

public AbstractSVGList getParent()
Returns the parent list of this item.

getStringValue

protected abstract String getStringValue()
Return the string representation of the item.

getValueAsString

public String getValueAsString()
Returns the cached representation of the item if valid, otherwise recomputes the String representation of the item.

resetAttribute

protected void resetAttribute()
Notifies the parent list that the item has changed. This discards the cached representation of the item.

setParent

public void setParent(AbstractSVGList list)
Assigns a parent list to this item.

Parameters: list The list the item belongs.

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.