Package org.frankframework.xml
Class NodeSetFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
org.frankframework.xml.FullXmlFilter
org.frankframework.xml.NodeSetFilter
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,LexicalHandler,XMLFilter,XMLReader
Filter that copies only a single element type, and/or its contents.
Optionally the root is copied too.
- Author:
- Gerrit van Brakel
-
Field Summary
Fields inherited from class org.frankframework.xml.FullXmlFilter
log -
Constructor Summary
ConstructorsConstructorDescriptionNodeSetFilter(String targetElement, ContentHandler handler) NodeSetFilter(Map<String, String> namespaceMap, String targetElement, boolean includeTarget, boolean includeRoot, ContentHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidcomment(char[] ch, int start, int length) voidendCDATA()voidendElement(String uri, String localName, String qName) voidvoidCalled every time the processing of a node of the NodeSet has finished.voidendPrefixMapping(String prefix) voidignorableWhitespace(char[] ch, int start, int length) voidvoidstartElement(String uri, String localName, String qName, Attributes atts) voidstartEntity(String name) voidCalled before processing of each node of the NodeSet is started.voidstartPrefixMapping(String prefix, String uri) Methods inherited from class org.frankframework.xml.FullXmlFilter
endDTD, setContentHandler, setParent, setParentsLexicalHandler, startDTDMethods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, notationDecl, parse, parse, processingInstruction, resolveEntity, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startDocument, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
NodeSetFilter
-
NodeSetFilter
public NodeSetFilter(Map<String, String> namespaceMap, String targetElement, boolean includeTarget, boolean includeRoot, ContentHandler handler)
-
-
Method Details
-
startNode
Called before processing of each node of the NodeSet is started.- Throws:
SAXException
-
endNode
Called every time the processing of a node of the NodeSet has finished.- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classXMLFilterImpl- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classXMLFilterImpl- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLFilterImpl- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classXMLFilterImpl- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classXMLFilterImpl- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Overrides:
commentin classFullXmlFilter- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Overrides:
startCDATAin classFullXmlFilter- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Overrides:
endCDATAin classFullXmlFilter- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Overrides:
startEntityin classFullXmlFilter- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Overrides:
endEntityin classFullXmlFilter- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classXMLFilterImpl- Throws:
SAXException
-