org.fcrepo.client.utility.validate
Class ValidationResult
java.lang.Object
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
ValidationResult
public ValidationResult(ObjectInfo object)
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.