|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Title: DOValidator.java
Description: Validates a digital object.
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Method Summary | |
void |
validate(java.io.File in,
java.lang.String format,
int validationLevel,
java.lang.String phase)
Validates a digital object. |
void |
validate(java.io.InputStream in,
java.lang.String format,
int validationLevel,
java.lang.String phase)
Validates a digital object. |
| Method Detail |
public void validate(java.io.InputStream in,
java.lang.String format,
int validationLevel,
java.lang.String phase)
throws ServerException
Validates a digital object.
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.
public void validate(java.io.File in,
java.lang.String format,
int validationLevel,
java.lang.String phase)
throws ServerException
Validates a digital object.
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 | ||||||||||