public class DataMapHandler extends NamespaceAwareNestedTagHandler
Modifier and Type | Field and Description |
---|---|
static String |
TRUE |
allowAllNamespaces, targetNamespace
loaderContext, locator, parentHandler
Constructor and Description |
---|
DataMapHandler(LoaderContext loaderContext) |
DataMapHandler(NamespaceAwareNestedTagHandler 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.
|
DataMap |
getDataMap() |
protected boolean |
processElement(String namespaceURI,
String localName,
Attributes attributes)
Main method to process XML content.
|
characters, endElement, processCharData, setAllowAllNamespaces, setTargetNamespace, startElement
getParentHandler, setDocumentLocator, stop, unexpectedTagMessage
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public static final String TRUE
public DataMapHandler(NamespaceAwareNestedTagHandler parentHandler)
public DataMapHandler(LoaderContext loaderContext)
protected boolean processElement(String namespaceURI, String localName, Attributes attributes) throws SAXException
SAXNestedTagHandler
processElement
in class NamespaceAwareNestedTagHandler
namespaceURI
- namespace for taglocalName
- tag local name (i.e. w/o namespace prefix)attributes
- tag attributesSAXException
- can be thrown to abort parsingSAXNestedTagHandler.createChildTagHandler(String, String, String, Attributes)
protected ContentHandler createChildTagHandler(String namespaceURI, String localName, String qName, Attributes attributes)
SAXNestedTagHandler
null
.createChildTagHandler
in class NamespaceAwareNestedTagHandler
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 beforeScopeEnd()
SAXNestedTagHandler
beforeScopeEnd
in class SAXNestedTagHandler
public DataMap getDataMap()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.