public class ContentRootElementHandler extends AbstractXmlReadHandler
Modifier and Type | Field and Description |
---|---|
static String |
PRPT_SPEC_VERSION |
Constructor and Description |
---|
ContentRootElementHandler() |
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 object for this element or null, if this element does not create an object.
|
void |
init(RootXmlReadHandler rootHandler,
String uri,
String tagName)
Initialises the handler.
|
protected void |
startParsing(Attributes attrs)
Starts parsing.
|
characters, deriveParseParameters, endElement, getLocator, getRootHandler, getTagName, getUri, isSameNamespace, performExternalParsing, performExternalParsing, startElement
public static final String PRPT_SPEC_VERSION
public void init(RootXmlReadHandler rootHandler, String uri, String tagName) throws SAXException
init
in interface XmlReadHandler
init
in class AbstractXmlReadHandler
rootHandler
- the root handler.tagName
- the tag name.SAXException
protected void startParsing(Attributes attrs) throws SAXException
startParsing
in class AbstractXmlReadHandler
attrs
- the attributes.SAXException
- if there is a parsing error.protected XmlReadHandler getHandlerForChild(String uri, String tagName, Attributes atts) throws SAXException
getHandlerForChild
in class AbstractXmlReadHandler
uri
- the URI of the namespace of the current element.tagName
- the tag name.atts
- the attributes.SAXException
- if there is a parsing error.protected void doneParsing() throws SAXException
doneParsing
in class AbstractXmlReadHandler
SAXException
- if there is a parsing error.public Object getObject() throws SAXException
SAXException
- if an parser error occured.Copyright © 2017 Hitachi Vantara. All rights reserved.