code: public void validate(InputStream objectAsStream,
                           String format,
                           int validationType,
                           String phase) throws ServerException {
          dov.validate(objectAsStream, format, validationType, phase);
      }
docs: <p>
  Validates a digital object.
  </p>
  
  @param objectAsStream
  The digital object provided as a bytestream.
  @param validationType
  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)
  @param 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
  @throws ServerException
  If validation fails for any reason.