|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.validation.DOValidatorSchematron
public class DOValidatorSchematron
Schematron validation for fedora objects encoded in schematron schema for Fedora. The schematron schema (metsExtRules1-0.xml) expresses a set of rules using XPATH that enable us to check for things that are either not expressed in the METS XML schema, or that cannot be expressed with XML Schema language. Generally we will look for things that are requirements of Fedora objects, which are not requirements for METS objects in general.
| Constructor Summary | |
|---|---|
DOValidatorSchematron(String schemaPath,
String preprocessorPath,
String phase)
Constructs a DOValidatorSchematron instance with a Schematron preprocessor that is provided by the calling class. |
|
| Method Summary | |
|---|---|
static StreamSource |
fileToStreamSource(File file)
|
static StreamSource |
fileToStreamSource(String str)
Generates a StreamSource from a file name. |
void |
validate(File objectAsFile)
Run the Schematron validation on a Fedora object. |
void |
validate(InputStream objectAsStream)
Run the Schematron validation on a Fedora object. |
void |
validate(StreamSource objectSource)
Run the Schematron validation on a Fedora object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOValidatorSchematron(String schemaPath,
String preprocessorPath,
String phase)
throws ObjectValidityException
schemaPath - the URL of the Schematron schemapreprocessorPath - the location of the Schematron preprocessorphase - the phase in the fedora object lifecycle to which validation
should pertain. (Currently options are "ingest" and "store"
ObjectValidityException| Method Detail |
|---|
public void validate(File objectAsFile)
throws ServerException
objectAsFile - the Fedora object as a File
ServerException
public void validate(InputStream objectAsStream)
throws ServerException
objectAsStream - the Fedora object as an Inputstream
ServerException
public void validate(StreamSource objectSource)
throws ServerException
objectSource - the Fedora object as an StreamSource
ServerExceptionpublic static StreamSource fileToStreamSource(String str)
public static StreamSource fileToStreamSource(File file)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||