org.geotools.xml.impl
Interface HandlerFactory

All Known Implementing Classes:
HandlerFactoryImpl

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
Module:
modules/extension/xsd-core (gt-xsd-core.jar)

Method Summary
 DocumentHandler createDocumentHandler(ParserHandler parser)
          Creates a handler for the root element of a document.
 ElementHandler createElementHandler(QName qName, Handler parent, ParserHandler parser)
          Creates an element hander for a global or top level element in a document.
 ElementHandler createElementHandler(XSDElementDeclaration element, Handler parent, ParserHandler parser)
          Creates a handler for a particular element in a document.
 

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.


Copyright © 1996-2009 Geotools. All Rights Reserved.