org.fcrepo.client.utility.validate.process
Class SimpleValidationResults

java.lang.Object
  extended by org.fcrepo.client.utility.validate.process.SimpleValidationResults
All Implemented Interfaces:
ValidationResults

public class SimpleValidationResults
extends Object
implements ValidationResults

A simple implementation of ValidationResults for use with the ValidatorProcess. When record(ValidationResult) is called, the result is printed to standard output.

Author:
Chris Wilper

Constructor Summary
SimpleValidationResults(boolean verbose)
          Creates an instance.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleValidationResults

public SimpleValidationResults(boolean verbose)
Creates an instance.

Parameters:
verbose - if true, all INFO level messages will be printed in addition to WARNings and ERRORs.
Method Detail

record

public void record(ValidationResult result)
Description copied from interface: ValidationResults
Record a ValidationResult that is the result of validating an object.

Specified by:
record in interface ValidationResults

closeResults

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

Specified by:
closeResults in interface ValidationResults


Copyright © 2012 DuraSpace. All Rights Reserved.