Package org.kie.efesto.common.api.utils
Class JSONUtils
- java.lang.Object
-
- org.kie.efesto.common.api.utils.JSONUtils
-
public class JSONUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FRIgetFRIObject(String friString)static StringgetFRIString(FRI fri)static GeneratedResourcegetGeneratedResourceObject(String generatedResourceString)static GeneratedResourcesgetGeneratedResourcesObject(String generatedResourcesString)static GeneratedResourcesgetGeneratedResourcesObject(IndexFile indexFile)static StringgetGeneratedResourcesString(GeneratedResources generatedResources)static StringgetGeneratedResourceString(GeneratedResource generatedResource)static voidwriteGeneratedResourcesObject(GeneratedResources toWrite, IndexFile indexFile)
-
-
-
Method Detail
-
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
-
getFRIString
public static String getFRIString(FRI fri) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-