Class PropertiesReadHandler
java.lang.Object
org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
org.pentaho.reporting.libraries.xmlns.parser.PropertiesReadHandler
- All Implemented Interfaces:
XmlReadHandler
A read handler that creates property-structures (name-value-pairs) and returns the properties as java.util.Properties
collection.
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a properties read-handler using "property" as child-tagname.PropertiesReadHandler
(String propertyTagName) Creates a properties read-handler using the specified propertyTagName as child-tagname. -
Method Summary
Modifier and TypeMethodDescriptionReturns the resulting properties collection, never null.Returns the resulting properties collection, never null.Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
characters, endElement, getLocator, getRootHandler, getTagName, getUri, init, startElement
-
Constructor Details
-
PropertiesReadHandler
public PropertiesReadHandler()Creates a properties read-handler using "property" as child-tagname. -
PropertiesReadHandler
Creates a properties read-handler using the specified propertyTagName as child-tagname.- Parameters:
propertyTagName
- the tag name for the child elements that define the properties.
-
-
Method Details
-
getResult
Returns the resulting properties collection, never null.- Returns:
- the properties.
-
getObject
Returns the resulting properties collection, never null.- Returns:
- the properties.
- Throws:
SAXException
- if there is a parsing error.
-