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(Node aXMLNode,
String sBaseURI)
Apply the Schematron validation on the passed DOM node 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(Node aXMLNode,
String sBaseURI)
Apply the Schematron validation on the passed DOM Node and return a
SchematronOutputType object. |
SchematronOutputType |
applySchematronValidationToSVRL(Source aXMLSource)
Apply the Schematron validation on the passed XML source and return a
SchematronOutputType object. |
EntityResolver |
getEntityResolver() |
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(Node aXMLNode,
String sBaseURI)
A method to check if the passed 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 |
isUseCache() |
boolean |
isValidSchematron() |
void |
setUseCache(boolean bUseCache)
Enable or disable caching.
|
@Nonnull com.helger.commons.io.resource.IReadableResource getResource()
null
resource from which to read the
Schematron rules.boolean isUseCache()
true
to use caching, if applicable.void setUseCache(boolean bUseCache)
bUseCache
- true
to use the cache, false
to not use
it.@Nullable EntityResolver getEntityResolver()
null
.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 Node aXMLNode, @Nullable String sBaseURI) throws Exception
aXMLNode
- The source DOM node to validate against the Schematron. May not be
null
.sBaseURI
- The Base URI of the XML document to be validated. May 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 be validated 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 Node aXMLNode, @Nullable String sBaseURI) throws Exception
aXMLNode
- The DOM node to be validated via Schematron. May not be
null
.sBaseURI
- The Base URI of the XML document to be validated. May 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 be validated 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 be validated via Schematron. May not be
null
.null
when interpreting the Schematron failed.Exception
- In case the transformation somehow goes wrong.@Nullable SchematronOutputType applySchematronValidationToSVRL(@Nonnull Node aXMLNode, @Nullable String sBaseURI) throws Exception
SchematronOutputType
object.aXMLNode
- The DOM node to be validated via Schematron. May not be
null
.sBaseURI
- The Base URI of the XML document to be validated. May 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 be validated via Schematron. May not be
null
.null
when interpreting the Schematron failed.Exception
- In case the transformation somehow goes wrong.Copyright © 2014–2019 Philip Helger. All rights reserved.