Class Utility


  • public abstract class Utility
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • Utility

        public Utility()
    • 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.JsonProcessingException
        IOException
      • 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.JsonProcessingException
        IOException
      • getUUIDFromJsonString

        public static UUID getUUIDFromJsonString​(String json)
                                          throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException,
                                                 IOException
        Throws:
        org.gcube.com.fasterxml.jackson.core.JsonProcessingException
        IOException
      • getTypeName

        public static String getTypeName​(org.gcube.informationsystem.base.reference.Element element)
      • getTypeName

        public static <E extends org.gcube.informationsystem.base.reference.Element> String getTypeName​(Class<E> clz)