org.fcrepo.client.utility.validate
Class ValidationResult

java.lang.Object
  extended by org.fcrepo.client.utility.validate.ValidationResult

public class ValidationResult
extends Object

The accumulated result of validating on a digital object. This result contains a reference to the object and may also contain (0 or more) "notations" that describe the results of the validation.

Each notation has a ValidationResult.Level associated with it, and if any of these levels are ERROR, the validation is considered to have failed.

Author:
Jim Blake

Nested Class Summary
static class ValidationResult.Level
           
 
Constructor Summary
ValidationResult(ObjectInfo object)
           
 
Method Summary
 void addNote(ValidationResultNotation note)
           
 boolean equals(Object obj)
           
 Collection<ValidationResultNotation> getNotes()
           
 ObjectInfo getObject()
           
 ValidationResult.Level getSeverityLevel()
          What's the highest severity level of any of the notations on this result?
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationResult

public ValidationResult(ObjectInfo object)
Method Detail

addNote

public void addNote(ValidationResultNotation note)

getObject

public ObjectInfo getObject()

getNotes

public Collection<ValidationResultNotation> getNotes()

getSeverityLevel

public ValidationResult.Level getSeverityLevel()
What's the highest severity level of any of the notations on this result?


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 DuraSpace. All Rights Reserved.