public interface ParserDelegate extends ContentHandler
An example of such a case is when a schema dynamically imports content from other schemas.
Instances of these objects are declared in the Configuration.getContext()
. Example:
MyParserDelegate delegate = new MyParserDelegate(); Configuration configuration = ...; configuration.getContext().registerComponentInstance( delegate );
ParserDelegate2
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(QName elementName)
Deprecated.
This method is deprecated and
ParserDelegate2#canHandle(QName, Attributes,
Handler) should be used. After one major release cycle ParserDelegate2 methods will be
pulled into this interface and this method will be removed. In preparation
implementations should implement both interfaces. |
Object |
getParsedObject()
Gets the final parsed object from the delegate.
|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
boolean canHandle(QName elementName)
ParserDelegate2#canHandle(QName, Attributes,
Handler)
should be used. After one major release cycle ParserDelegate2 methods will be
pulled into this interface and this method will be removed. In preparation
implementations should implement both interfaces.A common check in this method would be to check the namespace of the element.
elementName
- The name of the element to potentially handle.Object getParsedObject()
This method is called after parsing control returns to the main parsing driver.
Copyright © 1996–2019 Geotools. All rights reserved.