org.fcrepo.server.validation
Interface DOObjectValidator
- All Known Implementing Classes:
- DOObjectValidatorModule, EcmValidator
public interface DOObjectValidator
Validator for digital objects (instances of DigitalObject, wrapped in a
DOReader).
Allows validation based on the Java object rather than validating FOXML
- Author:
- stephen.bayliss
validate
void validate(Context context,
DOReader reader)
throws ServerException
- Validate a digital object wrapped in a DOReader
- Parameters:
context - reader - - DOReader wrapping the object
- Throws:
ServerException. - Throw
an ObjectValidityException if something invalid is found
(with a useful message indicating what failed) and other
types of ServerException if the validation process itself
failed
ServerException
Copyright © 2012 DuraSpace. All Rights Reserved.