Class XMLXSDMarshaller


  • public class XMLXSDMarshaller
    extends java.lang.Object
    Unmarshaller that converts an input XML stream to a Document using XSD schema validation.
    Author:
    B.F.A. Hompes
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.dom4j.Document importFromStream​(java.io.InputStream inputXML, java.lang.String inputXSD)
      Import an XML file as a org.dom4j.Document while validating it against an XSD Schema
      static org.dom4j.Document importFromStream​(org.processmining.framework.plugin.PluginContext context, java.io.InputStream inputXML, java.lang.String inputXSD)
      Import an XML file as a org.dom4j.Document while validating it against an XSD Schema.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLXSDMarshaller

        public XMLXSDMarshaller()
    • Method Detail

      • importFromStream

        public static org.dom4j.Document importFromStream​(java.io.InputStream inputXML,
                                                          java.lang.String inputXSD)
        Import an XML file as a org.dom4j.Document while validating it against an XSD Schema
        Parameters:
        inputXML - The input XML as a stream.
        inputXSD - The input XSD Schema location.
        Returns:
        The document.
      • importFromStream

        public static org.dom4j.Document importFromStream​(org.processmining.framework.plugin.PluginContext context,
                                                          java.io.InputStream inputXML,
                                                          java.lang.String inputXSD)
        Import an XML file as a org.dom4j.Document while validating it against an XSD Schema.
        Parameters:
        context - The plugincontext (nullable).
        inputXML - The input XML as a stream.
        inputXSD - The input XSD Schema location.
        Returns:
        The document.