org.pentaho.reporting.libraries.xmlns.parser
public class PropertiesReadHandler extends AbstractXmlReadHandler
Constructor and Description |
---|
PropertiesReadHandler()
Creates a properties read-handler using "property" as child-tagname.
|
PropertiesReadHandler(java.lang.String propertyTagName)
Creates a properties read-handler using the specified propertyTagName as child-tagname.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doneParsing()
Done parsing.
|
protected XmlReadHandler |
getHandlerForChild(java.lang.String uri,
java.lang.String tagName,
org.xml.sax.Attributes atts)
Returns the handler for a child element.
|
java.lang.Object |
getObject()
Returns the resulting properties collection, never null.
|
java.util.Properties |
getResult()
Returns the resulting properties collection, never null.
|
characters, deriveParseParameters, endElement, getLocator, getRootHandler, getTagName, getUri, init, isSameNamespace, performExternalParsing, performExternalParsing, startElement, startParsing
public PropertiesReadHandler()
public PropertiesReadHandler(java.lang.String propertyTagName)
propertyTagName
- the tag name for the child elements that define the properties.protected XmlReadHandler getHandlerForChild(java.lang.String uri, java.lang.String tagName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
getHandlerForChild
in class AbstractXmlReadHandler
tagName
- the tag name.atts
- the attributes.uri
- the URI of the namespace of the current element.org.xml.sax.SAXException
- if there is a parsing error.protected void doneParsing() throws org.xml.sax.SAXException
doneParsing
in class AbstractXmlReadHandler
org.xml.sax.SAXException
- if there is a parsing error.public java.util.Properties getResult()
public java.lang.Object getObject() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if there is a parsing error.