Package org.frankframework.align
Class XmlTo<C extends DocumentContainer>
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
org.frankframework.align.XmlTo<C>
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,XMLFilter
,XMLReader
XML Schema guided XML converter;
- Author:
- Gerrit van Brakel
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String uri, String localName, String qName) boolean
static ValidatorHandler
setupHandler
(URL schemaURL, DocumentContainer documentContainer) void
setWriteAttributes
(boolean writeAttributes) void
startElement
(String uri, String localName, String qName, Attributes atts) toString()
static void
translate
(String xml, URL schemaURL, DocumentContainer documentContainer) Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
XmlTo
-
-
Method Details
-
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
-
setupHandler
public static ValidatorHandler setupHandler(URL schemaURL, DocumentContainer documentContainer) throws SAXException - Throws:
SAXException
-
translate
public static void translate(String xml, URL schemaURL, DocumentContainer documentContainer) throws SAXException, IOException - Throws:
SAXException
IOException
-
toString
-
getDocumentContainer
-
isWriteAttributes
public boolean isWriteAttributes() -
setWriteAttributes
public void setWriteAttributes(boolean writeAttributes)
-