|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
static ElementRecognizer |
ALL
|
Method Summary | |
---|---|
boolean |
filterStartElement(String nsURI,
String localName,
String qName,
Attributes attrs)
Recognize an element based upon the start element parameters. |
Field Detail |
---|
static final ElementRecognizer ALL
Method Detail |
---|
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 filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |