public interface ElementRecognizer
A number of standard implementations are provided for your convenience. To implement your own filters, just implement the filterStartElement method.
Modifier and Type | Interface and Description |
---|---|
static class |
ElementRecognizer.AllElementRecognizer |
static class |
ElementRecognizer.ByLocalName
Filter elements by local name (not recommended).
|
static class |
ElementRecognizer.ByNSName
Filter elements by name and namespace.
|
static class |
ElementRecognizer.HasAttribute
Filter elements on the existence of a specified attribute.
|
Modifier and Type | Field and Description |
---|---|
static ElementRecognizer |
ALL |
Modifier and Type | Method and Description |
---|---|
boolean |
filterStartElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Recognize an element based upon the start element parameters.
|
static final ElementRecognizer ALL
boolean filterStartElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)
nsURI
- the uri of the element to filterlocalName
- the local name of the element to filterqName
- the qName of the element to filterattrs
- the attributes associated with the element to filter