Class QueryExpressionTextDelegate

Object
DefaultHandler
CopyingHandler
QueryExpressionTextDelegate
All Implemented Interfaces:
ParserDelegate, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class QueryExpressionTextDelegate extends CopyingHandler implements ParserDelegate
  • Constructor Details

    • QueryExpressionTextDelegate

      public QueryExpressionTextDelegate(NamespaceSupport context)
  • Method Details

    • startElement

      public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class CopyingHandler
      Throws:
      SAXException
    • endElement

      public void endElement(String uri, String localName, String qName) throws SAXException
      Specified by:
      endElement in interface ContentHandler
      Overrides:
      endElement in class CopyingHandler
      Throws:
      SAXException
    • canHandle

      public boolean canHandle(QName elementName)
    • canHandle

      public boolean canHandle(QName elementName, Attributes attributes, Handler handler, Handler parent)
      Description copied from interface: ParserDelegate
      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.

      Specified by:
      canHandle in interface ParserDelegate
      Parameters:
      elementName - The name of the element to potentially handle.
      attributes - The attributes of the element to potentially handle
      handler - The parse handler that would normally handle the element, possibly null
      parent - The parse handler for the parent element, possibly null.
      Returns:
      True if this delegate handles elements of the specified name and should take over parsing.
    • getParsedObject

      public Object getParsedObject()
      Description copied from interface: ParserDelegate
      Gets the final parsed object from the delegate.

      This method is called after parsing control returns to the main parsing driver.

      Specified by:
      getParsedObject in interface ParserDelegate