Interface HandlerFactory

  • All Known Implementing Classes:
    HandlerFactoryImpl, KMLCustomSchemaHandlerFactory

    public interface HandlerFactory
    Factory used to create element handler objects during the processing of an instance document.
    Author:
    Justin Deoliveira,Refractions Reserach Inc.,jdeolive@refractions.net
    • Method Detail

      • createDocumentHandler

        DocumentHandler createDocumentHandler​(ParserHandler parser)
        Creates a handler for the root element of a document.
      • createElementHandler

        ElementHandler createElementHandler​(QName qName,
                                            Handler parent,
                                            ParserHandler parser)
        Creates an element hander for a global or top level element in a document.
        Parameters:
        qName - The qualified name identifying the element.
        parent - The parent handler.
        parser - The content handler driving the parser.
        Returns:
        A new element handler, or null if one could not be created.
      • createElementHandler

        ElementHandler createElementHandler​(XSDElementDeclaration element,
                                            Handler parent,
                                            ParserHandler parser)
        Creates a handler for a particular element in a document.
        Parameters:
        element - The schema component which represents the declaration of the element.
        parent - The parent handler.
        parser - The content handler driving the parser.
        Returns:
        A new element handler, or null if one could not be created.