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(String nsURI,
String localName,
String qName,
Attributes attrs)
Recognize an element based upon the start element parameters.
|
static final ElementRecognizer ALL
boolean filterStartElement(String nsURI, String localName, String qName, 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 filterCopyright © 2014 BioJava. All rights reserved.