org.fcrepo.client.utility.validate
Class ObjectValidator

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

public class ObjectValidator
extends Object

This is the actual validation engine, performing validation tests on an ObjectInfo. The engine is provided with an ObjectSource at instantiation time, in case additional objects are required to complete the validation.

Author:
Jim Blake

Constructor Summary
ObjectValidator(ObjectSource objectSource)
           
 
Method Summary
 ValidationResult validate(ObjectInfo object)
          Each object is expected to have at least one content model.
 ValidationResult validate(String pid)
          If we only have a PID, we can get the object from the ObjectSource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectValidator

public ObjectValidator(ObjectSource objectSource)
Method Detail

validate

public ValidationResult validate(String pid)
If we only have a PID, we can get the object from the ObjectSource. But if that fails, we need to mock up an object for the result.


validate

public ValidationResult validate(ObjectInfo object)
Each object is expected to have at least one content model. Validate each of the content models.



Copyright © 2012 DuraSpace. All Rights Reserved.