public class ItemHandler extends org.xml.sax.helpers.DefaultHandler implements DatasetTags
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Comparable |
key
The key.
|
private org.xml.sax.helpers.DefaultHandler |
parent
The parent handler (can be the same as root, but not always).
|
private RootHandler |
root
The root handler.
|
private java.lang.Number |
value
The value.
|
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(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
The end of an element.
|
java.lang.Comparable |
getKey()
Returns the key that has been read by the handler, or
null. |
java.lang.Number |
getValue()
Returns the key that has been read by the handler, or
null. |
void |
setKey(java.lang.Comparable key)
Sets the key.
|
void |
setValue(java.lang.Number value)
Sets the value.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
The start of an element.
|
private RootHandler root
private org.xml.sax.helpers.DefaultHandler parent
private java.lang.Comparable key
private java.lang.Number value
public ItemHandler(RootHandler root, org.xml.sax.helpers.DefaultHandler parent)
root - the root handler.parent - the parent handler.public java.lang.Comparable getKey()
null.public void setKey(java.lang.Comparable key)
key - the key.public java.lang.Number getValue()
null.public void setValue(java.lang.Number value)
value - the value.public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.atts - the attributes.org.xml.sax.SAXException - for errors.public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.