All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fcrepo.client.utility.validate.ObjectSource Maven / Gradle / Ivy

There is a newer version: 3.8.1
Show newest version
/* The contents of this file are subject to the license and copyright terms
 * detailed in the license directory at the root of the source tree (also 
 * available online at http://fedora-commons.org/license/).
 */

package org.fcrepo.client.utility.validate;

import org.fcrepo.client.utility.validate.types.ContentModelInfo;
import org.fcrepo.client.utility.validate.types.ObjectInfo;

/**
 * Provides an abstract wrapper around the repository of digital objects.
 * 
 * @author Jim Blake
 */
public interface ObjectSource {

    /**
     * Get the object that has this PID, or null if there is no
     * such object.
     */
    ObjectInfo getValidationObject(String pid) throws ObjectSourceException;

    /**
     * Get the object that has this PID (or null) and confirm
     * that it is a valid content model.
     */
    ContentModelInfo getContentModelInfo(String pid)
            throws ObjectSourceException, InvalidContentModelException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy