Modifier and Type | Field and Description |
---|---|
private static String |
DM4_HOST_URL |
private static Logger |
logger |
Constructor and Description |
---|
DMXUtils() |
Modifier and Type | Method and Description |
---|---|
static RoleModel[] |
associationAutoTyping(AssociationModel assoc,
String topicTypeUri1,
String topicTypeUri2,
String assocTypeUri,
String roleTypeUri1,
String roleTypeUri2,
CoreService dmx)
Retypes the given association if its player types match the given topic types.
|
private static RoleModel |
getRoleModel(RoleModel r1,
RoleModel r2,
String t1,
String t2,
String topicTypeUri,
int nr) |
static RoleModel[] |
getRoleModels(AssociationModel assoc,
String topicTypeUri1,
String topicTypeUri2,
CoreService dmx) |
static List<Long> |
idList(Iterable<? extends Identifiable> items) |
static boolean |
isDMXURL(URL url)
Checks if an URL refers to this DMX installation.
|
static <T extends DMXObject> |
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 DMXObject> objects) |
static String |
topicNames(Iterable<? extends Topic> topics) |
private static final String DM4_HOST_URL
public DMXUtils()
public static boolean isDMXURL(URL url)
public static List<Long> idList(Iterable<? extends Identifiable> items)
public static <M> List<M> toModelList(Iterable<? extends DMXObject> objects)
public static String topicNames(Iterable<? extends Topic> topics)
public static <T extends DMXObject> List<T> loadChildTopics(List<T> objects)
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 dmx)
public static RoleModel[] getRoleModels(AssociationModel assoc, String topicTypeUri1, String topicTypeUri2, CoreService dmx)
Copyright © 2018. All Rights Reserved.