Class DataMapHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.cayenne.configuration.xml.SAXNestedTagHandler
org.apache.cayenne.configuration.xml.NamespaceAwareNestedTagHandler
org.apache.cayenne.configuration.xml.DataMapHandler
- All Implemented Interfaces:
- ContentHandler,- DTDHandler,- EntityResolver,- ErrorHandler
public class DataMapHandler extends NamespaceAwareNestedTagHandler
- Since:
- 4.1
- 
Field SummaryFields inherited from class org.apache.cayenne.configuration.xml.NamespaceAwareNestedTagHandlerallowAllNamespaces, targetNamespaceFields inherited from class org.apache.cayenne.configuration.xml.SAXNestedTagHandlerloaderContext, locator, parentHandler
- 
Constructor SummaryConstructors Constructor Description DataMapHandler(LoaderContext loaderContext)DataMapHandler(NamespaceAwareNestedTagHandler parentHandler)
- 
Method SummaryModifier and Type Method Description protected voidbeforeScopeEnd()Callback method that is called before this handler pushed out of parsers stack.protected ContentHandlercreateChildTagHandler(String namespaceURI, String localName, String qName, Attributes attributes)This method should be used to create nested handlers to process children elements.DataMapgetDataMap()protected booleanprocessElement(String namespaceURI, String localName, Attributes attributes)Main method to process XML content.Methods inherited from class org.apache.cayenne.configuration.xml.NamespaceAwareNestedTagHandlercharacters, endElement, processCharData, setAllowAllNamespaces, setTargetNamespace, startElementMethods inherited from class org.apache.cayenne.configuration.xml.SAXNestedTagHandlergetParentHandler, setDocumentLocator, stop, unexpectedTagMessageMethods inherited from class org.xml.sax.helpers.DefaultHandlerendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandlerdeclaration
- 
Field Details- 
TRUE- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
DataMapHandler
- 
DataMapHandler
 
- 
- 
Method Details- 
processElementprotected boolean processElement(String namespaceURI, String localName, Attributes attributes) throws SAXExceptionDescription copied from class:SAXNestedTagHandlerMain method to process XML content. Should be override in subclasses, by default do nothing. Return value should be true if tag was fully processed and shouldn't be passed down to child handler.- Specified by:
- processElementin class- NamespaceAwareNestedTagHandler
- Parameters:
- namespaceURI- namespace for tag
- localName- tag local name (i.e. w/o namespace prefix)
- attributes- tag attributes
- Returns:
- true if tag was processed
- Throws:
- SAXException- can be thrown to abort parsing
- See Also:
- SAXNestedTagHandler.createChildTagHandler(String, String, String, Attributes)
 
- 
createChildTagHandlerprotected ContentHandler createChildTagHandler(String namespaceURI, String localName, String qName, Attributes attributes)Description copied from class:SAXNestedTagHandlerThis method should be used to create nested handlers to process children elements. This method should never returnnull.- Overrides:
- createChildTagHandlerin class- NamespaceAwareNestedTagHandler
- Parameters:
- namespaceURI- namespace for tag
- localName- tag local name (i.e. w/o namespace prefix)
- qName- tag full name (i.e. with namespace prefix)
- attributes- tag attributes
- Returns:
- new handler to process child tag
 
- 
beforeScopeEndprotected void beforeScopeEnd()Description copied from class:SAXNestedTagHandlerCallback method that is called before this handler pushed out of parsers stack. Can be used to flush some aggregate state.- Overrides:
- beforeScopeEndin class- SAXNestedTagHandler
 
- 
getDataMap
 
-