public class PropertiesReadHandler extends AbstractXmlReadHandler
Constructor and Description |
---|
PropertiesReadHandler()
Creates a properties read-handler using "property" as child-tagname.
|
PropertiesReadHandler(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(String uri,
String tagName,
Attributes atts)
Returns the handler for a child element.
|
Object |
getObject()
Returns the resulting properties collection, never null.
|
protected ArrayList<PropertyReadHandler> |
getPropertyHandlers() |
protected String |
getPropertyTagName() |
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(String propertyTagName)
propertyTagName
- the tag name for the child elements that define the properties.protected ArrayList<PropertyReadHandler> getPropertyHandlers()
protected String getPropertyTagName()
protected XmlReadHandler getHandlerForChild(String uri, String tagName, Attributes atts) throws SAXException
getHandlerForChild
in class AbstractXmlReadHandler
tagName
- the tag name.atts
- the attributes.uri
- the URI of the namespace of the current element.SAXException
- if there is a parsing error.protected void doneParsing() throws SAXException
doneParsing
in class AbstractXmlReadHandler
SAXException
- if there is a parsing error.public Properties getResult()
public Object getObject() throws SAXException
SAXException
- if there is a parsing error.Copyright © 2019 Hitachi Vantara. All rights reserved.