public class SPathFilter extends org.xml.sax.helpers.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 org.xml.sax.helpers.XMLFilterImplSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.XMLFilterImplSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class org.xml.sax.helpers.XMLFilterImplSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.XMLFilterImplSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.XMLFilterImplSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class org.xml.sax.helpers.XMLFilterImplSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class org.xml.sax.helpers.XMLFilterImplSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class org.xml.sax.helpers.XMLFilterImplSAXExceptionpublic void startDocument()
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.XMLFilterImplpublic static boolean nodeMatchesStep(Step s, String uri, String localName, String qName, Attributes a)
Copyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.