@NotThreadSafe public abstract class AbstractSchematronXSLTResource extends AbstractSchematronResource
| Constructor and Description |
|---|
AbstractSchematronXSLTResource(com.helger.commons.io.IReadableResource aSCHResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver,
ISchematronXSLTProvider aXSLTProvider) |
AbstractSchematronXSLTResource(com.helger.commons.io.IReadableResource aSCHResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver,
ISchematronXSLTProvider aXSLTProvider,
ISchematronXSLTValidator aXSLTValidator) |
| Modifier and Type | Method and Description |
|---|---|
Document |
applySchematronValidation(com.helger.commons.io.IInputStreamProvider 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.IInputStreamProvider 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. |
ErrorListener |
getCustomErrorListener() |
URIResolver |
getCustomURIResolver() |
com.helger.commons.state.EValidity |
getSchematronValidity(com.helger.commons.io.IInputStreamProvider 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.
|
ISchematronXSLTProvider |
getXSLTProvider() |
ISchematronXSLTValidator |
getXSLTValidator() |
boolean |
isValidSchematron() |
String |
toString() |
getID, getResourcepublic AbstractSchematronXSLTResource(@Nonnull com.helger.commons.io.IReadableResource aSCHResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver, @Nullable ISchematronXSLTProvider aXSLTProvider)
public AbstractSchematronXSLTResource(@Nonnull com.helger.commons.io.IReadableResource aSCHResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver, @Nullable ISchematronXSLTProvider aXSLTProvider, @Nonnull ISchematronXSLTValidator aXSLTValidator)
@Nullable public ErrorListener getCustomErrorListener()
null.@Nullable public URIResolver getCustomURIResolver()
null.@Nullable public ISchematronXSLTProvider getXSLTProvider()
null.@Nonnull public ISchematronXSLTValidator getXSLTValidator()
null.public final 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 public com.helger.commons.state.EValidity getSchematronValidity(@Nonnull com.helger.commons.io.IInputStreamProvider aXMLResource) throws Exception
ISchematronResourceaXMLResource - 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 public com.helger.commons.state.EValidity getSchematronValidity(@Nonnull Source aXMLSource) throws Exception
ISchematronResourceaXMLSource - 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 public Document applySchematronValidation(@Nonnull com.helger.commons.io.IInputStreamProvider aXMLResource) throws Exception
ISchematronResourceaXMLResource - 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 public final Document applySchematronValidation(@Nonnull Source aXMLSource) throws Exception
ISchematronResourceaXMLSource - 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 public SchematronOutputType applySchematronValidationToSVRL(@Nonnull com.helger.commons.io.IInputStreamProvider aXMLResource) throws Exception
ISchematronResourceSchematronOutputType 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 public SchematronOutputType applySchematronValidationToSVRL(@Nonnull Source aXMLSource) throws Exception
ISchematronResourceSchematronOutputType 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.public String toString()
toString in class AbstractSchematronResourceCopyright © 2014–2015 Philip Helger. All rights reserved.