public class ItemHandler extends org.xml.sax.helpers.DefaultHandler implements DatasetTags
CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG| Constructor and Description |
|---|
ItemHandler(RootHandler root,
org.xml.sax.helpers.DefaultHandler parent)
Creates a new item handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(String namespaceURI,
String localName,
String qName)
The end of an element.
|
Comparable |
getKey()
Returns the key that has been read by the handler, or
null. |
Number |
getValue()
Returns the key that has been read by the handler, or
null. |
void |
setKey(Comparable key)
Sets the key.
|
void |
setValue(Number value)
Sets the value.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
The start of an element.
|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic ItemHandler(RootHandler root, org.xml.sax.helpers.DefaultHandler parent)
root - the root handler.parent - the parent handler.public Comparable getKey()
null.public void setKey(Comparable key)
key - the key.public Number getValue()
null.public void setValue(Number value)
value - the value.public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.atts - the attributes.SAXException - for errors.public void endElement(String namespaceURI, String localName, String qName)
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.Copyright © 2001–2017 JFree.org. All rights reserved.