@NotThreadSafe public abstract class AbstractSchematronXSLTResource extends AbstractSchematronResource
| Constructor and Description |
|---|
AbstractSchematronXSLTResource(com.phloc.commons.io.IReadableResource aSCHResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver,
ISchematronXSLTProvider aXSLTProvider) |
AbstractSchematronXSLTResource(com.phloc.commons.io.IReadableResource aSCHResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver,
ISchematronXSLTProvider aXSLTProvider,
ISchematronXSLTValidator aValidator) |
| Modifier and Type | Method and Description |
|---|---|
Document |
applySchematronValidation(com.phloc.commons.io.IReadableResource 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.phloc.commons.io.IReadableResource 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.phloc.commons.state.EValidity |
getSchematronValidity(com.phloc.commons.io.IReadableResource aXMLResource)
A method to check if the passed XML DOM node matches the Schematron rules
or not.
|
com.phloc.commons.state.EValidity |
getSchematronValidity(Source aXMLSource)
A method to check if the passed XML DOM node matches the Schematron rules
or not.
|
boolean |
isValidSchematron() |
String |
toString() |
getID, getResourcepublic AbstractSchematronXSLTResource(@Nonnull com.phloc.commons.io.IReadableResource aSCHResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver, @Nullable ISchematronXSLTProvider aXSLTProvider)
public AbstractSchematronXSLTResource(@Nonnull com.phloc.commons.io.IReadableResource aSCHResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver, @Nullable ISchematronXSLTProvider aXSLTProvider, @Nonnull ISchematronXSLTValidator aValidator)
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.phloc.commons.state.EValidity getSchematronValidity(@Nonnull com.phloc.commons.io.IReadableResource 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.phloc.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.phloc.commons.io.IReadableResource 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.phloc.commons.io.IReadableResource 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 © 2006–2014 phloc systems. All rights reserved.