|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISchematronResource
Base interface for a Schematron resource. The implementation can e.g. be a SCH file that needs preprocessing to XSLT or an already precompiled XSLT file.
Method Summary | |
---|---|
Document |
applySchematronValidation(com.phloc.commons.io.IReadableResource aXMLResource)
Apply the schematron validation on the passed XML resource and return an SVRL XML document. |
Document |
applySchematronValidation(Source aXMLSource)
Apply the schematron validation on the passed XML source and return an SVRL XML document. |
com.phloc.commons.io.IReadableResource |
getResource()
|
boolean |
isValidSchematron()
|
Methods inherited from interface com.phloc.commons.id.IHasID |
---|
getID |
Method Detail |
---|
@Nonnull com.phloc.commons.io.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.@Nullable Document applySchematronValidation(@Nonnull com.phloc.commons.io.IReadableResource 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |