Class JSONUtils

java.lang.Object
org.kie.efesto.common.core.utils.JSONUtils

public class JSONUtils extends Object
  • Method Details

    • getGeneratedResourceString

      public static String getGeneratedResourceString(GeneratedResource generatedResource) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getGeneratedResourceObject

      public static GeneratedResource getGeneratedResourceObject(String generatedResourceString) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getGeneratedResourcesString

      public static String getGeneratedResourcesString(GeneratedResources generatedResources) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getGeneratedResourcesObject

      public static GeneratedResources getGeneratedResourcesObject(String generatedResourcesString) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getGeneratedResourcesObject

      public static GeneratedResources getGeneratedResourcesObject(IndexFile indexFile) throws IOException
      Throws:
      IOException
    • writeGeneratedResourcesObject

      public static void writeGeneratedResourcesObject(GeneratedResources toWrite, IndexFile indexFile) throws IOException
      Throws:
      IOException
    • getModelLocalUriIdString

      public static String getModelLocalUriIdString(ModelLocalUriId localUriId) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getModelLocalUriIdObject

      public static ModelLocalUriId getModelLocalUriIdObject(String localUriString) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException