public class SPathFilter extends XMLFilterImpl
Filters a SAX stream based on a single supplied SPath expression.
| Modifier and Type | Field and Description |
|---|---|
protected List |
steps
The steps in the SPath expression we use for filtering.
|
| Constructor and Description |
|---|
SPathFilter(Path path)
Constructs a new SPathFilter, given a Path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Filter for characters().
|
void |
endElement(String uri,
String localName,
String qName)
Filter for endElement().
|
void |
endPrefixMapping(String prefix)
Filter for endPrefixMapping().
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Filter for ignoreableWhitespace().
|
static boolean |
nodeMatchesStep(Step s,
String uri,
String localName,
String qName,
Attributes a) |
void |
processingInstruction(String target,
String data)
Filter for processingInstruction().
|
void |
skippedEntity(String name)
Filter for skippedEntity().
|
void |
startDocument()
Resets state.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes a)
Filter for startElement().
|
void |
startPrefixMapping(String prefix,
String uri)
Filter for startPrefixMapping().
|
endDocument, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, notationDecl, parse, parse, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, unparsedEntityDecl, warningprotected List steps
public SPathFilter(Path path)
public void startElement(String uri, String localName, String qName, Attributes a) throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImplSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImplSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class XMLFilterImplSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class XMLFilterImplSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class XMLFilterImplSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class XMLFilterImplSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class XMLFilterImplSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class XMLFilterImplSAXExceptionpublic void startDocument()
startDocument in interface ContentHandlerstartDocument in class XMLFilterImplpublic static boolean nodeMatchesStep(Step s, String uri, String localName, String qName, Attributes a)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.