Class SchematronResourceHelper

java.lang.Object
com.helger.schematron.SchematronResourceHelper

@Immutable public final class SchematronResourceHelper extends Object
This is a common utility class.
Author:
Philip Helger
  • Method Details

    • getNodeOfSource

      @Nullable public static Node getNodeOfSource(@Nonnull Source aSource, @Nonnull com.helger.xml.serialize.read.DOMReaderSettings aDRS)
      Convert the passed transform source into a DOM node. Currently on DOMSource and StreamSource can be handled.
      Parameters:
      aSource - The transform source to use. May not be null.
      aDRS - DOMReader settings to use. May not be null.
      Returns:
      The DOM node and never null.
      Throws:
      IllegalArgumentException - in case an unsupported Source implementation is provided.