org.jfree.data.xml

Class CategoryDatasetHandler

public class CategoryDatasetHandler extends RootHandler implements DatasetTags

A SAX handler for reading a CategoryDataset from an XML file.
Constructor Summary
CategoryDatasetHandler()
Creates a new handler.
Method Summary
voidaddItem(Comparable rowKey, Comparable columnKey, Number value)
Adds an item to the dataset.
voidendElement(String namespaceURI, String localName, String qName)
The end of an element.
CategoryDatasetgetDataset()
Returns the dataset.
voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)
The start of an element.

Constructor Detail

CategoryDatasetHandler

public CategoryDatasetHandler()
Creates a new handler.

Method Detail

addItem

public void addItem(Comparable rowKey, Comparable columnKey, Number value)
Adds an item to the dataset.

Parameters: rowKey the row key. columnKey the column key. value the value.

endElement

public void endElement(String namespaceURI, String localName, String qName)
The end of an element.

Parameters: namespaceURI the namespace. localName the element name. qName the element name.

Throws: SAXException for errors.

getDataset

public CategoryDataset getDataset()
Returns the dataset.

Returns: The dataset.

startElement

public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
The start of an element.

Parameters: namespaceURI the namespace. localName the element name. qName the element name. atts the element attributes.

Throws: SAXException for errors.