Package org.fcrepo.client.utility.validate.types

Examples of org.fcrepo.client.utility.validate.types.ObjectInfo


    public ValidationResult validate(String pid) {
        if (pid == null) {
            throw new NullPointerException("pid may not be null.");
        }

        ObjectInfo object = null;

        try {
            object = objectSource.getValidationObject(pid);
        } catch (ObjectSourceException e) {
            // This falls into the case of object==null.
View Full Code Here


     */
    @Override
    public ContentModelInfo getContentModelInfo(String pid)
            throws ObjectSourceException, InvalidContentModelException {
        try {
            ObjectInfo object = getValidationObject(pid);
            if (object == null) {
                return null;
            }

            DatastreamInfo dsInfo =
                    object.getDatastreamInfo(DS_COMPOSITE_MODEL);
            if (dsInfo == null) {
                throw new InvalidContentModelException(pid,
                                                       "Content model has no '"
                                                               + DS_COMPOSITE_MODEL
                                                               + "' datastream.");
View Full Code Here

        if (throwExceptionOnTheseModels.contains(pid)) {
            throw createInvalidContentModelException(pid);
        }

        ObjectInfo object = seedObjects.get(pid);
        if (object == null) {
            return null;
        }

        return seedModels.get(pid);
View Full Code Here

TOP

Related Classes of org.fcrepo.client.utility.validate.types.ObjectInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.