org.pentaho.reporting.libraries.xmlns.parser
Class PropertyReadHandler

java.lang.Object
  extended by org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
      extended by org.pentaho.reporting.libraries.xmlns.parser.StringReadHandler
          extended by org.pentaho.reporting.libraries.xmlns.parser.PropertyReadHandler
All Implemented Interfaces:
XmlReadHandler

public class PropertyReadHandler
extends StringReadHandler

The Property-ReadHandler reads character data from an element along with a 'name' attribute. This way, this class is most suitable for creating name-value-pairs.

Author:
Thomas Morgner

Constructor Summary
PropertyReadHandler()
          The Default-Constructor.
 
Method Summary
 java.lang.String getName()
          Returns the declared property-name.
protected  void startParsing(org.xml.sax.Attributes attrs)
          Starts parsing.
 
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.StringReadHandler
characters, doneParsing, getObject, getResult
 
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
deriveParseParameters, endElement, getHandlerForChild, getLocator, getRootHandler, getTagName, getUri, init, isSameNamespace, performExternalParsing, performExternalParsing, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyReadHandler

public PropertyReadHandler()
The Default-Constructor.

Method Detail

startParsing

protected void startParsing(org.xml.sax.Attributes attrs)
                     throws org.xml.sax.SAXException
Starts parsing.

Overrides:
startParsing in class StringReadHandler
Parameters:
attrs - the attributes.
Throws:
org.xml.sax.SAXException - if there is a parsing error.

getName

public java.lang.String getName()
Returns the declared property-name.

Returns:
the property name.