|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.peppol.validation.commons.schematron.SchematronHelper
@Immutable public final class SchematronHelper
This is a helper class that provides a way to easily apply an Schematron resource on an XML resource.
Method Summary | |
---|---|
static SchematronOutputType |
applySchematron(ISchematronResource aSchematron,
com.phloc.commons.io.IReadableResource aXML)
Apply the passed schematron on the passed XML resource using a custom error handler. |
static SchematronOutputType |
applySchematron(ISchematronResource aSchematron,
Source aXML)
Apply the passed schematron on the passed XML resource. |
static com.phloc.commons.error.IResourceErrorGroup |
convertToResourceErrorGroup(SchematronOutputType aSchematronOutput,
String sResourceName)
Convert a SchematronOutputType to an IResourceErrorGroup . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Nullable public static SchematronOutputType applySchematron(@Nonnull ISchematronResource aSchematron, @Nonnull com.phloc.commons.io.IReadableResource aXML)
aSchematron
- The Schematron resource. May not be null
.aXML
- The XML resource. May not be null
.
null
if either the Schematron or the XML could not be
read.
IllegalStateException
- if the processing throws an unexpected exception.@Nullable public static SchematronOutputType applySchematron(@Nonnull ISchematronResource aSchematron, @Nonnull Source aXML)
aSchematron
- The Schematron resource. May not be null
.aXML
- The XML resource. May not be null
.
null
if either the Schematron or the XML could not be
read.
IllegalStateException
- if the processing throws an unexpected exception.@Nonnull public static com.phloc.commons.error.IResourceErrorGroup convertToResourceErrorGroup(@Nonnull SchematronOutputType aSchematronOutput, @Nullable String sResourceName)
SchematronOutputType
to an IResourceErrorGroup
.
aSchematronOutput
- The result of Schematron validationsResourceName
- The name of the resource that was validated (may be a file path
etc.)
null
error list of SVRLResourceError
objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |