public class DeepaMehtaUtils extends Object
| Constructor and Description |
|---|
DeepaMehtaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static RoleModel[] |
associationAutoTyping(AssociationModel assoc,
String topicTypeUri1,
String topicTypeUri2,
String assocTypeUri,
String roleTypeUri1,
String roleTypeUri2,
CoreService dm4)
Retypes the given association if its player types match the given topic types.
|
static RoleModel[] |
getRoleModels(AssociationModel assoc,
String topicTypeUri1,
String topicTypeUri2,
CoreService dm4) |
static List<Long> |
idList(Iterable<? extends Identifiable> items) |
static boolean |
isDeepaMehtaURL(URL url)
Checks if an URL refers to this DeepaMehta installation.
|
static <T extends DeepaMehtaObject> |
loadChildTopics(List<T> objects) |
static org.codehaus.jettison.json.JSONArray |
toJSONArray(Iterable<? extends JSONEnabled> items) |
static List |
toList(org.codehaus.jettison.json.JSONArray o) |
static Map |
toMap(org.codehaus.jettison.json.JSONObject o) |
static Map |
toMap(org.codehaus.jettison.json.JSONObject o,
Map map) |
static <M> List<M> |
toModelList(Iterable<? extends DeepaMehtaObject> objects) |
static String |
topicNames(Iterable<? extends Topic> topics) |
public static boolean isDeepaMehtaURL(URL url)
public static List<Long> idList(Iterable<? extends Identifiable> items)
public static <M> List<M> toModelList(Iterable<? extends DeepaMehtaObject> objects)
public static <T extends DeepaMehtaObject> List<T> loadChildTopics(List<T> objects)
public static Map toMap(org.codehaus.jettison.json.JSONObject o)
public static List toList(org.codehaus.jettison.json.JSONArray o)
public static org.codehaus.jettison.json.JSONArray toJSONArray(Iterable<? extends JSONEnabled> items)
public static RoleModel[] associationAutoTyping(AssociationModel assoc, String topicTypeUri1, String topicTypeUri2, String assocTypeUri, String roleTypeUri1, String roleTypeUri2, CoreService dm4)
public static RoleModel[] getRoleModels(AssociationModel assoc, String topicTypeUri1, String topicTypeUri2, CoreService dm4)
Copyright © 2018. All rights reserved.