org.fcrepo.client.utility.validate
Interface ValidationResults

All Known Implementing Classes:
SimpleValidationResults

public interface ValidationResults

Specifies the results accumulator for the ObjectValidator.

Author:
Jim Blake

Method Summary
 void closeResults()
          Print, summarize, store, or display the accumulated results.
 void record(ValidationResult result)
          Record a ValidationResult that is the result of validating an object.
 

Method Detail

record

void record(ValidationResult result)
Record a ValidationResult that is the result of validating an object.

Throws:
IllegalStateException - if closeResults() has already been called.

closeResults

void closeResults()
Print, summarize, store, or display the accumulated results. This should be called once, after all calls to record(ValidationResult) have been made.



Copyright © 2012 DuraSpace. All Rights Reserved.