Interface ElementRecognizer

All Known Implementing Classes:
ElementRecognizer.AllElementRecognizer, ElementRecognizer.ByLocalName, ElementRecognizer.ByNSName, ElementRecognizer.HasAttribute

public interface ElementRecognizer
Simple interface for filtering SAX/StAX startElement events.

A number of standard implementations are provided for your convenience. To implement your own filters, just implement the filterStartElement method.

Since:
1.2
Author:
Thomas Down, Matthew Pocock
  • Field Details

  • Method Details

    • filterStartElement

      boolean filterStartElement(String nsURI, String localName, String qName, Attributes attrs)
      Recognize an element based upon the start element parameters.
      Parameters:
      nsURI - the uri of the element to filter
      localName - the local name of the element to filter
      qName - the qName of the element to filter
      attrs - the attributes associated with the element to filter
      Returns:
      true if this element is accepted, false otherwise