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
ConstructorDescriptionNodeSetFilter
(String targetElement, ContentHandler handler) NodeSetFilter
(Map<String, String> namespaceMap, String targetElement, boolean includeTarget, boolean includeRoot, ContentHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
comment
(char[] ch, int start, int length) void
endCDATA()
void
endElement
(String uri, String localName, String qName) void
void
Called every time the processing of a node of the NodeSet has finished.void
endPrefixMapping
(String prefix) void
ignorableWhitespace
(char[] ch, int start, int length) void
void
startElement
(String uri, String localName, String qName, Attributes atts) void
startEntity
(String name) void
Called before processing of each node of the NodeSet is started.void
startPrefixMapping
(String prefix, String uri) Methods inherited from class org.frankframework.xml.FullXmlFilter
endDTD, setContentHandler, setLexicalHandler, setParent, setParentsLexicalHandler, startDTD
Methods 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, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classXMLFilterImpl
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classXMLFilterImpl
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classXMLFilterImpl
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classXMLFilterImpl
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classXMLFilterImpl
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Overrides:
comment
in classFullXmlFilter
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Overrides:
startCDATA
in classFullXmlFilter
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Overrides:
endCDATA
in classFullXmlFilter
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Overrides:
startEntity
in classFullXmlFilter
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Overrides:
endEntity
in classFullXmlFilter
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classXMLFilterImpl
- Throws:
SAXException
-