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(org.codehaus.jettison.json.JSONObject o)
toMap
public static Map toMap(org.codehaus.jettison.json.JSONObject o,
Map map)
toList
public static List toList(org.codehaus.jettison.json.JSONArray o)
stringsToJson
public static org.codehaus.jettison.json.JSONArray stringsToJson(Collection<String> strings)
objectsToJSON
public static org.codehaus.jettison.json.JSONArray objectsToJSON(Iterable<? extends JSONEnabled> items)
Copyright © 2015. All Rights Reserved.