|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.daisy.zedval.engine.ZedTestProcessor
org.daisy.zedval.engine.RngSchematronTestProcessor
An RngSchematronTestProcessor
object executes tests via
RelaxNG schema validation
Constructor Summary | |
RngSchematronTestProcessor(java.lang.String id,
java.lang.String l,
java.util.LinkedHashMap tests,
java.util.LinkedHashMap files,
ZedContext c,
java.lang.String schemaName,
boolean useRng,
boolean useSchematron)
|
Method Summary | |
void |
error(org.xml.sax.SAXParseException e)
Receives notification of a recoverable (probably validation) error |
void |
fatalError(org.xml.sax.SAXParseException e)
Receives notification of a non-recoverable (probably well-formedness) error |
java.io.File |
getSchemaFile()
Returns the schema file being used by this processor |
java.net.URL |
getSchemaUrl()
|
boolean |
performTests()
Validates all files against the schema |
java.lang.String |
toString()
|
void |
warning(org.xml.sax.SAXParseException e)
Receives notification of a warning |
Methods inherited from class org.daisy.zedval.engine.ZedTestProcessor |
getContext, getFilesTested, getId, getLabel, getTestsImplemented |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RngSchematronTestProcessor(java.lang.String id, java.lang.String l, java.util.LinkedHashMap tests, java.util.LinkedHashMap files, ZedContext c, java.lang.String schemaName, boolean useRng, boolean useSchematron)
id
- Id of this ZedTestProcessor (from processor map)l
- Name for this ZedTestProcessortests
- LinkedHashMap of ZedTests that this ZedTestProcessor
implements (key = id)files
- LinkedHashMap of ZedFiles upon which this ZedTestProcessor is
to be invoked (key = absolute full path)c
- ZedContext for this runschemaName
- name of schema against which to validateuseRng
- tells whether to validate against the RNG parts of the schemauseSchematron
- tells whether to validate against the schematron parts of the
schemaMethod Detail |
public boolean performTests()
performTests
in class ZedTestProcessor
public java.io.File getSchemaFile()
public java.net.URL getSchemaUrl()
public void error(org.xml.sax.SAXParseException e)
error
in interface org.xml.sax.ErrorHandler
e
- The exception that represents the errorpublic void fatalError(org.xml.sax.SAXParseException e)
fatalError
in interface org.xml.sax.ErrorHandler
e
- The exception that represents the errorpublic void warning(org.xml.sax.SAXParseException e)
warning
in interface org.xml.sax.ErrorHandler
e
- The exception that represents the warningpublic java.lang.String toString()
toString
in class ZedTestProcessor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |