public class ToJSONHelper
extends java.lang.Object
构造器和说明 |
---|
ToJSONHelper() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addEmptyDataTip(JSONObject js,
Repository repo,
java.lang.String chartID) |
static void |
addProcessCategories(JSONObject js,
java.util.Map<java.lang.String,Process> processMap) |
static void |
addStringLocale(Repository repo,
JSONObject jsonObject) |
static java.util.Locale |
getLocale(Repository repo) |
static java.util.Locale |
getLocale(TemplateSessionIDInfo sessionIDInfor,
javax.servlet.http.HttpServletRequest httpServletRequest) |
static java.lang.String |
getLocaleString(java.util.Locale locale) |
static boolean |
isMobileAndFlow(Repository repo) |
static boolean |
isObtainAutoRefreshJson(Repository repo) |
static boolean |
isObtainAutoRefreshJson(Repository repo,
VanChartPlotGlyph plotGlyph) |
static void |
toGisLayerJSON(GisLayer gisLayer,
JSONObject js) |
static JSONObject |
toProcessJSONObject(Process process) |
static JSONObject |
toToolsJSONObject(VanChartTools tools) |
static void |
toViewCenterJSON(ViewCenter viewCenter,
JSONObject js) |
static JSONObject |
toZoomJSONObject(VanChartZoom zoom) |
public static boolean isObtainAutoRefreshJson(Repository repo)
public static boolean isObtainAutoRefreshJson(Repository repo, VanChartPlotGlyph plotGlyph)
public static boolean isMobileAndFlow(Repository repo)
public static void addProcessCategories(JSONObject js, java.util.Map<java.lang.String,Process> processMap) throws JSONException
JSONException
public static JSONObject toProcessJSONObject(Process process) throws JSONException
JSONException
public static JSONObject toToolsJSONObject(VanChartTools tools) throws JSONException
JSONException
public static JSONObject toZoomJSONObject(VanChartZoom zoom) throws JSONException
JSONException
public static void toGisLayerJSON(GisLayer gisLayer, JSONObject js) throws JSONException
JSONException
public static void toViewCenterJSON(ViewCenter viewCenter, JSONObject js) throws JSONException
JSONException
public static void addEmptyDataTip(JSONObject js, Repository repo, java.lang.String chartID) throws JSONException
JSONException
public static void addStringLocale(Repository repo, JSONObject jsonObject) throws JSONException
JSONException
public static java.util.Locale getLocale(Repository repo)
public static java.util.Locale getLocale(TemplateSessionIDInfo sessionIDInfor, javax.servlet.http.HttpServletRequest httpServletRequest)
public static java.lang.String getLocaleString(java.util.Locale locale)