Package org.geotools.xsd
Interface ParserDelegate
-
- All Superinterfaces:
ContentHandler
- All Known Subinterfaces:
ParserDelegate2
- All Known Implementing Classes:
FESParserDelegate
,FilterParserDelegate
,GMLParserDelegate
,GMLParserDelegate
,InterpolationParserDelegate
,ParameterParserDelegate
,QueryExpressionTextDelegate
,RangeSubsetParserDelegate
,ScalingParserDelegate
,WFSParserDelegate
,XSDParserDelegate
public interface ParserDelegate extends ContentHandler
Interface for objects which need to take over parsing control from the main parsing driver.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 );
- Author:
- Justin Deoliveira, OpenGEO
- See Also:
ParserDelegate2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canHandle(QName elementName, Attributes attributes, Handler handler, Handler parent)
Determines if this delegate can handle the specified element name.Object
getParsedObject()
Gets the final parsed object from the delegate.-
Methods inherited from interface ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
-
-
-
-
Method Detail
-
canHandle
boolean canHandle(QName elementName, Attributes attributes, Handler handler, Handler parent)
Determines if this delegate can handle the specified element name.A common check in this method would be to check the namespace of the element.
- Parameters:
elementName
- The name of the element to potentially handle.attributes
- The attributes of the element to potentially handlehandler
- The parse handler that would normally handle the element, possiblynull
parent
- The parse handler for the parent element, possiblynull
.- Returns:
- True if this delegate handles elements of the specified name and should take over parsing.
-
getParsedObject
Object getParsedObject()
Gets the final parsed object from the delegate.This method is called after parsing control returns to the main parsing driver.
-
-