org.gcube.application.aquamaps.aquamapsportlet.servlet.utils
Class JSONUtils
java.lang.Object
org.gcube.application.aquamaps.aquamapsportlet.servlet.utils.JSONUtils
public class JSONUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONUtils
public JSONUtils()
JSONToSpecies
public static List<org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Species> JSONToSpecies(String toParse)
throws org.json.JSONException
- Throws:
org.json.JSONException
JSONSpeciesIds
public static List<String> JSONSpeciesIds(String toParse)
throws Exception
- Throws:
Exception
pertMapToJSON
public static String pertMapToJSON(Map<SpeciesFields,Float> perturbations)
throws org.json.JSONException
- Throws:
org.json.JSONException
JSONtoPert
public static Map<String,org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Perturbation> JSONtoPert(String JSONString)
throws Exception
- Throws:
Exception
weitghtsToJSON
public static String weitghtsToJSON(Map<String,Boolean> weights)
throws org.json.JSONException
- Throws:
org.json.JSONException
JSONtoWeights
public static Map<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.fields.EnvelopeFields,org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> JSONtoWeights(String JSONString)
throws Exception
- Throws:
Exception
Copyright © 2014. All Rights Reserved.