public class SAXNestedTagHandler extends DefaultHandler
NamespaceAwareNestedTagHandler if you need to process namespaces.org.apache.cayenne.configuration packageNamespaceAwareNestedTagHandler| Modifier and Type | Field and Description |
|---|---|
protected LoaderContext |
loaderContext |
protected Locator |
locator |
protected ContentHandler |
parentHandler |
| Constructor and Description |
|---|
SAXNestedTagHandler(LoaderContext loaderContext) |
SAXNestedTagHandler(SAXNestedTagHandler parentHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeScopeEnd()
Callback method that is called before this handler pushed out of parsers stack.
|
protected ContentHandler |
createChildTagHandler(String namespaceURI,
String localName,
String qName,
Attributes attributes)
This method should be used to create nested handlers to process children elements.
|
void |
endElement(String namespaceURI,
String localName,
String qName) |
ContentHandler |
getParentHandler() |
protected boolean |
processElement(String namespaceURI,
String localName,
Attributes attributes)
Main method to process XML content.
|
void |
setDocumentLocator(Locator locator) |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes attributes)
This method directly called by SAX parser, do not override it directly,
use
processElement(String, String, Attributes) method instead to process content. |
protected void |
stop() |
protected String |
unexpectedTagMessage(String tagFound,
String... tagsExpected) |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected LoaderContext loaderContext
protected ContentHandler parentHandler
protected Locator locator
public SAXNestedTagHandler(LoaderContext loaderContext)
public SAXNestedTagHandler(SAXNestedTagHandler parentHandler)
protected boolean processElement(String namespaceURI, String localName, Attributes attributes) throws SAXException
namespaceURI - namespace for taglocalName - tag local name (i.e. w/o namespace prefix)attributes - tag attributesSAXException - can be thrown to abort parsingcreateChildTagHandler(String, String, String, Attributes)protected void beforeScopeEnd()
protected ContentHandler createChildTagHandler(String namespaceURI, String localName, String qName, Attributes attributes)
null.namespaceURI - namespace for taglocalName - tag local name (i.e. w/o namespace prefix)qName - tag full name (i.e. with namespace prefix)attributes - tag attributesprotected void stop()
public void startElement(String namespaceURI, String localName, String qName, Attributes attributes) throws SAXException
processElement(String, String, Attributes) method instead to process content.startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptioncreateChildTagHandler(String, String, String, Attributes)public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerpublic ContentHandler getParentHandler()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.