de.deepamehta.core.util
Class DeepaMehtaUtils
java.lang.Object
de.deepamehta.core.util.DeepaMehtaUtils
public class DeepaMehtaUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static Logger logger
DM4_HOST_URL
private static final String DM4_HOST_URL
DeepaMehtaUtils
public DeepaMehtaUtils()
isDeepaMehtaURL
public static boolean isDeepaMehtaURL(URL url)
- Checks if an URL refers to this DeepaMehta installation.
The check relies on the "dm4.host.url" system property.
idList
public static List<Long> idList(Iterable<? extends Identifiable> items)
toTopicModels
public static List<TopicModel> toTopicModels(Iterable<? extends Topic> topics)
topicNames
public static String topicNames(Iterable<? extends Topic> topics)
toMap
public static Map toMap(JSONObject o)
toMap
public static Map toMap(JSONObject o,
Map map)
toList
public static List toList(JSONArray o)
stringsToJson
public static JSONArray stringsToJson(Collection<String> strings)
objectsToJSON
public static JSONArray objectsToJSON(Iterable<? extends JSONEnabled> items)
Copyright © 2015. All Rights Reserved.