Package com.helger.schematron
Class SchematronResourceHelper
java.lang.Object
com.helger.schematron.SchematronResourceHelper
This is a common utility class.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic NodegetNodeOfSource(Source aSource, com.helger.xml.serialize.read.DOMReaderSettings aDRS) Convert the passed transform source into a DOM node.
-
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 onDOMSourceandStreamSourcecan be handled.- Parameters:
aSource- The transform source to use. May not benull.aDRS- DOMReader settings to use. May not benull.- Returns:
- The DOM node and never
null. - Throws:
IllegalArgumentException- in case an unsupportedSourceimplementation is provided.
-