org.jfree.data.xml
Class ItemHandler
DefaultHandler
org.jfree.data.xml.ItemHandler
- DatasetTags
A handler for reading key-value items.
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.
|
ItemHandler
public ItemHandler(RootHandler root,
DefaultHandler parent)
Creates a new item handler.
root
- the root handler.parent
- the parent handler.
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
The end of an element.
namespaceURI
- the namespace.localName
- the element name.qName
- the element name.
getKey
public Comparable getKey()
Returns the key that has been read by the handler, or null
.
getValue
public Number getValue()
Returns the key that has been read by the handler, or null
.
setKey
public void setKey(Comparable key)
Sets the key.
setValue
public void setValue(Number value)
Sets the value.
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
The start of an element.
namespaceURI
- the namespace.localName
- the element name.qName
- the element name.atts
- the attributes.