public class QueryExpressionTextDelegate extends CopyingHandler implements ParserDelegate
buffer, namespaceContext, root
Constructor and Description |
---|
QueryExpressionTextDelegate(NamespaceSupport context) |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(QName elementName) |
boolean |
canHandle(QName elementName,
Attributes attributes,
Handler handler,
Handler parent)
Determines if this delegate can handle the specified element name.
|
void |
endElement(String uri,
String localName,
String qName) |
Object |
getParsedObject()
Gets the final parsed object from the delegate.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
characters, endDocument
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
public QueryExpressionTextDelegate(NamespaceSupport context)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class CopyingHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class CopyingHandler
SAXException
public boolean canHandle(QName elementName)
public boolean canHandle(QName elementName, Attributes attributes, Handler handler, Handler parent)
ParserDelegate
A common check in this method would be to check the namespace of the element.
canHandle
in interface ParserDelegate
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, possibly null
parent
- The parse handler for the parent element, possibly null
.public Object getParsedObject()
ParserDelegate
This method is called after parsing control returns to the main parsing driver.
getParsedObject
in interface ParserDelegate
Copyright © 1996–2021 Geotools. All rights reserved.