Class RootDataMapHandler

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class RootDataMapHandler extends VersionAwareHandler
Since:
4.1
  • Constructor Details

    • RootDataMapHandler

      public RootDataMapHandler(LoaderContext loaderContext, Resource configurationSource)
  • Method Details

    • processElement

      protected boolean processElement(String namespaceURI, String localName, Attributes attributes) throws SAXException
      Description copied from class: SAXNestedTagHandler
      Main 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.
      Overrides:
      processElement in class VersionAwareHandler
      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:
    • createChildTagHandler

      protected ContentHandler createChildTagHandler(String namespaceURI, String localName, String qName, Attributes attributes)
      Description copied from class: SAXNestedTagHandler
      This method should be used to create nested handlers to process children elements. This method should never return null.
      Overrides:
      createChildTagHandler in 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
    • getDataMap

      public DataMap getDataMap()
      Returns the DataMap loaded by this handler, or null if there was none in the document.