Class SkipContainersFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
org.frankframework.xml.FullXmlFilter
org.frankframework.configuration.filters.SkipContainersFilter
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,LexicalHandler
,XMLFilter
,XMLReader
This class omits XML elements from Frank configs that are meaningless containers.
The children of the omitted elements are kept. This class does its job by filtering SAX events.
-
Field Summary
Fields inherited from class org.frankframework.xml.FullXmlFilter
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endElement
(String uri, String localName, String qName) protected boolean
isContainer
(String localName) void
startElement
(String uri, String localName, String qName, Attributes atts) Methods inherited from class org.frankframework.xml.FullXmlFilter
comment, endCDATA, endDTD, endEntity, setContentHandler, setLexicalHandler, setParent, setParentsLexicalHandler, startCDATA, startDTD, startEntity
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startDocument, startPrefixMapping, 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
-
SkipContainersFilter
public SkipContainersFilter() -
SkipContainersFilter
-
-
Method Details
-
isContainer
-
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
-