Package util

Class ResourcesUtils

java.lang.Object
util.ResourcesUtils

public class ResourcesUtils extends Object
  • Constructor Details

    • ResourcesUtils

      public ResourcesUtils()
  • Method Details

    • getObject

      public static <T extends com.rosetta.model.lib.RosettaModelObject> T getObject(Class<T> clazz, String resourceName) throws IOException
      Throws:
      IOException
    • getObjectList

      public static <T extends com.rosetta.model.lib.RosettaModelObject> List<T> getObjectList(Class<T> clazz, String resourceName) throws IOException
      Throws:
      IOException
    • getObjectAndResolveReferences

      public static <T extends com.rosetta.model.lib.RosettaModelObject> T getObjectAndResolveReferences(Class<T> clazz, String resourceName) throws IOException
      Throws:
      IOException
    • getJson

      public static String getJson(String resourceName) throws IOException
      Throws:
      IOException
    • getInputObject

      public static <T> T getInputObject(String funcInputFile, String funcInputName, Class<T> funcInputType) throws IOException
      Throws:
      IOException
    • getInputObjectAndResolveReferences

      public static <T> T getInputObjectAndResolveReferences(String funcInputFile, String funcInputName, Class<T> funcInputType) throws IOException
      Throws:
      IOException
    • resolveReferences

      public static <T extends com.rosetta.model.lib.RosettaModelObject> T resolveReferences(T object)
    • print

      public static void print(com.rosetta.model.lib.RosettaModelObject o) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • reKey

      public static <T extends com.rosetta.model.lib.RosettaModelObjectBuilder> T reKey(T builder)
    • reKey

      public static <T extends com.rosetta.model.lib.RosettaModelObjectBuilder> List<T> reKey(List<T> builder)
    • toBuilder

      public static <B extends com.rosetta.model.lib.RosettaModelObjectBuilder, O extends com.rosetta.model.lib.RosettaModelObject> List<B> toBuilder(List<O> objectList)
    • build

      public static <O extends com.rosetta.model.lib.RosettaModelObject, B extends com.rosetta.model.lib.RosettaModelObjectBuilder> List<O> build(List<B> builderList)