Examples of ObjModels


Examples of org.fcrepo.server.types.gen.ObjectProfile.ObjModels

    public void testGetObjectProfileBasicCModel() throws Exception {
        for (String pid : new String[] {"demo:SmileyPens",
                "demo:SmileyGreetingCard"}) {
            ObjectProfile profile = apia.getObjectProfile(pid, null);
            boolean found = false;
            ObjModels objModels = profile.getObjModels();
            if (objModels != null && objModels.getModel() != null) {
                for (String objModel : objModels.getModel()) {
                    if (objModel.equals(Models.FEDORA_OBJECT_CURRENT.uri)) {
                        found = true;
                    }
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.