|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DOValidator
Validates a digital object.
| Method Summary | |
|---|---|
void |
validate(File in,
String format,
int validationLevel,
String phase)
Validates a digital object. |
void |
validate(InputStream in,
String format,
int validationLevel,
String phase)
Validates a digital object. |
| Method Detail |
|---|
void validate(InputStream in,
String format,
int validationLevel,
String phase)
throws ServerException
in - The digital object provided as a bytestream.validationLevel - The level of validation to perform on the digital object. This is
an integer from 0-2 with the following meanings: 0 = VALIDATE_ALL
(do all validation levels) 1 = VALIDATE_XML_SCHEMA (perform only
XML Schema validation) 2 = VALIDATE_SCHEMATRON (perform only
Schematron Rules validation)phase - The stage in the work flow for which the validation should be
contextualized. "ingest" = the object is in the submission format
for the ingest stage phase "store" = the object is in the
authoritative format for the final storage phase
ServerException - If validation fails for any reason.
void validate(File in,
String format,
int validationLevel,
String phase)
throws ServerException
in - The digital object provided as a file.validationLevel - The level of validation to perform on the digital object. This is
an integer from 0-2 with the following meanings: 0 = VALIDATE_ALL
(do all validation levels) 1 = VALIDATE_XML_SCHEMA (perform only
XML Schema validation) 2 = VALIDATE_SCHEMATRON (perform only
Schematron Rules validation)phase - The stage in the work flow for which the validation should be
contextualized. "ingest" = the object is in the submission format
for the ingest stage phase "store" = the object is in the
authoritative format for the final storage phase
ServerException - If validation fails for any reason.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||