Class SPathFilter
- java.lang.Object
-
- org.xml.sax.helpers.XMLFilterImpl
-
- org.apache.taglibs.standard.extra.spath.SPathFilter
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,XMLFilter,XMLReader
public class SPathFilter extends XMLFilterImpl
Filters a SAX stream based on a single supplied SPath expression.
- Author:
- Shawn Bayern
-
-
Constructor Summary
Constructors Constructor Description SPathFilter(Path path)Constructs a new SPathFilter, given a Path.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)Filter for characters().voidendElement(String uri, String localName, String qName)Filter for endElement().voidendPrefixMapping(String prefix)Filter for endPrefixMapping().voidignorableWhitespace(char[] ch, int start, int length)Filter for ignoreableWhitespace().static booleannodeMatchesStep(Step s, String uri, String localName, String qName, Attributes a)voidprocessingInstruction(String target, String data)Filter for processingInstruction().voidskippedEntity(String name)Filter for skippedEntity().voidstartDocument()Resets state.voidstartElement(String uri, String localName, String qName, Attributes a)Filter for startElement().voidstartPrefixMapping(String prefix, String uri)Filter for startPrefixMapping().-
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, notationDecl, parse, parse, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
SPathFilter
public SPathFilter(Path path)
Constructs a new SPathFilter, given a Path.
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String qName, Attributes a) throws SAXException
Filter for startElement().- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLFilterImpl- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
Filter for endElement().- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classXMLFilterImpl- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXExceptionFilter for ignoreableWhitespace().- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classXMLFilterImpl- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXExceptionFilter for characters().- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classXMLFilterImpl- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
Filter for startPrefixMapping().- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classXMLFilterImpl- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
Filter for endPrefixMapping().- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classXMLFilterImpl- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
Filter for processingInstruction().- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classXMLFilterImpl- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String name) throws SAXException
Filter for skippedEntity().- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin classXMLFilterImpl- Throws:
SAXException
-
startDocument
public void startDocument()
Resets state.- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classXMLFilterImpl
-
nodeMatchesStep
public static boolean nodeMatchesStep(Step s, String uri, String localName, String qName, Attributes a)
-
-