public class

ItemHandler

extends DefaultHandler
implements DatasetTags
java.lang.Object
   ↳ org.xml.sax.helpers.DefaultHandler
     ↳ org.jfree.data.xml.ItemHandler

Class Overview

A handler for reading key-value items.

Summary

[Expand]
Inherited Constants
From interface org.jfree.data.xml.DatasetTags
Public Constructors
ItemHandler(RootHandler root, DefaultHandler parent)
Creates a new item handler.
Public Methods
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.
[Expand]
Inherited Methods
From class org.xml.sax.helpers.DefaultHandler
From class java.lang.Object
From interface org.xml.sax.ContentHandler
From interface org.xml.sax.DTDHandler
From interface org.xml.sax.EntityResolver
From interface org.xml.sax.ErrorHandler

Public Constructors

public ItemHandler (RootHandler root, DefaultHandler parent)

Creates a new item handler.

Parameters
root the root handler.
parent the parent handler.

Public Methods

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.

public Comparable getKey ()

Returns the key that has been read by the handler, or null.

Returns
  • The key.

public Number getValue ()

Returns the key that has been read by the handler, or null.

Returns
  • The value.

public void setKey (Comparable key)

Sets the key.

Parameters
key the key.

public void setValue (Number value)

Sets the value.

Parameters
value the value.

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 attributes.
Throws
SAXException for errors.