de.deepamehta.core.util
Class DeepaMehtaUtils

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.util.DeepaMehtaUtils

public class DeepaMehtaUtils
extends Object


Field Summary
private static String DM4_HOST_URL
           
private static Logger logger
           
 
Constructor Summary
DeepaMehtaUtils()
           
 
Method Summary
static List<Long> idList(Iterable<? extends Identifiable> items)
           
static boolean isDeepaMehtaURL(URL url)
          Checks if an URL refers to this DeepaMehta installation.
static org.codehaus.jettison.json.JSONArray objectsToJSON(Iterable<? extends JSONEnabled> items)
           
static org.codehaus.jettison.json.JSONArray stringsToJson(Collection<String> strings)
           
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 String topicNames(Iterable<? extends Topic> topics)
           
static List<TopicModel> toTopicModels(Iterable<? extends Topic> topics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static Logger logger

DM4_HOST_URL

private static final String DM4_HOST_URL
Constructor Detail

DeepaMehtaUtils

public DeepaMehtaUtils()
Method Detail

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.