public class CategoryDatasetHandler extends RootHandler implements DatasetTags
CategoryDataset
from an XML file.CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG
Constructor and Description |
---|
CategoryDatasetHandler()
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(Comparable rowKey,
Comparable columnKey,
Number value)
Adds an item to the dataset.
|
void |
endElement(String namespaceURI,
String localName,
String qName)
The end of an element.
|
CategoryDataset |
getDataset()
Returns the dataset.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
The start of an element.
|
characters, getCurrentHandler, getSubHandlers, popSubHandler, pushSubHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public CategoryDataset getDataset()
public void addItem(Comparable rowKey, Comparable columnKey, Number value)
rowKey
- the row key.columnKey
- the column key.value
- the value.public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
namespaceURI
- the namespace.localName
- the element name.qName
- the element name.atts
- the element attributes.SAXException
- for errors.public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
namespaceURI
- the namespace.localName
- the element name.qName
- the element name.SAXException
- for errors.Jas4pp 1.5 © Java Analysis Studio for Particle Physics