public interface ISchematronResource extends com.helger.commons.id.IHasID<String>
Modifier and Type | Method and Description |
---|---|
Document |
applySchematronValidation(com.helger.commons.io.IHasInputStream aXMLResource)
Apply the Schematron validation on the passed XML resource and return an
SVRL XML DOM Document.
|
Document |
applySchematronValidation(Source aXMLSource)
Apply the Schematron validation on the passed XML source and return an SVRL
XML DOM Document.
|
SchematronOutputType |
applySchematronValidationToSVRL(com.helger.commons.io.IHasInputStream aXMLResource)
Apply the Schematron validation on the passed XML resource and return a
SchematronOutputType object. |
SchematronOutputType |
applySchematronValidationToSVRL(Source aXMLSource)
Apply the Schematron validation on the passed XML source and return a
SchematronOutputType object. |
com.helger.commons.io.resource.IReadableResource |
getResource() |
com.helger.commons.state.EValidity |
getSchematronValidity(com.helger.commons.io.IHasInputStream aXMLResource)
A method to check if the passed XML DOM node matches the Schematron rules
or not.
|
com.helger.commons.state.EValidity |
getSchematronValidity(Source aXMLSource)
A method to check if the passed XML DOM node matches the Schematron rules
or not.
|
boolean |
isValidSchematron() |
@Nonnull com.helger.commons.io.resource.IReadableResource getResource()
null
resource from which to read the
Schematron rules.boolean isValidSchematron()
true
if this Schematron can be used to validate XML
instances. If not, the Schematron is invalid and the log files must
be investigated.@Nonnull com.helger.commons.state.EValidity getSchematronValidity(@Nonnull com.helger.commons.io.IHasInputStream aXMLResource) throws Exception
aXMLResource
- The source XML to read and validate against the Schematron. May not
be null
.EValidity.VALID
if the document is valid,
EValidity.INVALID
if it is invalid.Exception
- in case of a sever error validating the schema@Nonnull com.helger.commons.state.EValidity getSchematronValidity(@Nonnull Source aXMLSource) throws Exception
aXMLSource
- The source XML to be validated against the Schematron. May not be
null
.EValidity.VALID
if the document is valid,
EValidity.INVALID
if it is invalid.Exception
- in case of a sever error validating the schema@Nullable Document applySchematronValidation(@Nonnull com.helger.commons.io.IHasInputStream aXMLResource) throws Exception
aXMLResource
- The XML resource to validate via Schematron. May not be
null
.null
if the passed resource does not exist or the non-
null
SVRL document otherwise.Exception
- In case the transformation somehow goes wrong.on how to convert the document
into a domain object
@Nullable Document applySchematronValidation(@Nonnull Source aXMLSource) throws Exception
aXMLSource
- The XML source to validate via Schematron. May not be
null
.null
when interpreting the Schematron failed.Exception
- In case the transformation somehow goes wrong.on how to convert the document
into a domain object
@Nullable SchematronOutputType applySchematronValidationToSVRL(@Nonnull com.helger.commons.io.IHasInputStream aXMLResource) throws Exception
SchematronOutputType
object.aXMLResource
- The XML resource to validate via Schematron. May not be
null
.null
when interpreting the Schematron failed.Exception
- In case the transformation somehow goes wrong.@Nullable SchematronOutputType applySchematronValidationToSVRL(@Nonnull Source aXMLSource) throws Exception
SchematronOutputType
object.aXMLSource
- The XML source to validate via Schematron. May not be
null
.null
when interpreting the Schematron failed.Exception
- In case the transformation somehow goes wrong.Copyright © 2014–2016 Philip Helger. All rights reserved.