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

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


    /**
     * Convert a WSDL-style {@link RelationshipTuple RelationshipTuple} into a
     * local {@link RelationshipInfo}.
     */
    public static RelationshipInfo convertGenRelsTupleToRelationshipInfo(RelationshipTuple genTuple) {
        return new RelationshipInfo(genTuple.getPredicate(), genTuple
                .getObject());
    }
View Full Code Here


     */
    private static RelationshipInfo[] contentModelRelations(ContentModelInfo... models) {
        RelationshipInfo[] relations = new RelationshipInfo[models.length];
        for (int i = 0; i < models.length; i++) {
            String objectUri = "info:fedora/" + models[i].getPid();
            relations[i] = new RelationshipInfo(HAS_MODEL, objectUri);
        }
        return relations;
    }
View Full Code Here

    /**
     * Create a relationship to a content model whose URI is not recognized as a
     * PID.
     */
    private static RelationshipInfo[] unknownContentModelRelation() {
        return new RelationshipInfo[] {new RelationshipInfo(HAS_MODEL,
                                                            NON_PID_URI)};
    }
View Full Code Here

TOP

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

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.