Class Utility
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.api.utils.Utility
-
public abstract class Utility extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description Utility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetClassFromJsonNode(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)static StringgetClassFromJsonString(String json)static <E extends org.gcube.informationsystem.base.reference.Element>
StringgetTypeName(Class<E> clz)static StringgetTypeName(org.gcube.informationsystem.base.reference.Element element)static UUIDgetUUIDFromJsonNode(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)static UUIDgetUUIDFromJsonString(String json)static StringgetUUIDStringFromJsonNode(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)static StringgetUUIDStringFromJsonString(String json)
-
-
-
Method Detail
-
getClassFromJsonNode
public static String getClassFromJsonNode(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
-
getClassFromJsonString
public static String getClassFromJsonString(String json) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException, IOException
- Throws:
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionIOException
-
getUUIDStringFromJsonNode
public static String getUUIDStringFromJsonNode(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
-
getUUIDFromJsonNode
public static UUID getUUIDFromJsonNode(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
-
getUUIDStringFromJsonString
public static String getUUIDStringFromJsonString(String json) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException, IOException
- Throws:
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionIOException
-
getUUIDFromJsonString
public static UUID getUUIDFromJsonString(String json) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException, IOException
- Throws:
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionIOException
-
getTypeName
public static String getTypeName(org.gcube.informationsystem.base.reference.Element element)
-
-