Package util
Class ResourcesUtils
java.lang.Object
util.ResourcesUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <O extends com.rosetta.model.lib.RosettaModelObject,B extends com.rosetta.model.lib.RosettaModelObjectBuilder>
List<O> static <T> TgetInputObject(String funcInputFile, String funcInputName, Class<T> funcInputType) static <T> TgetInputObjectAndResolveReferences(String funcInputFile, String funcInputName, Class<T> funcInputType) static Stringstatic <T extends com.rosetta.model.lib.RosettaModelObject>
Tstatic <T extends com.rosetta.model.lib.RosettaModelObject>
TgetObjectAndResolveReferences(Class<T> clazz, String resourceName) static <T extends com.rosetta.model.lib.RosettaModelObject>
List<T> getObjectList(Class<T> clazz, String resourceName) static voidprint(com.rosetta.model.lib.RosettaModelObject o) static <T extends com.rosetta.model.lib.RosettaModelObjectBuilder>
List<T> static <T extends com.rosetta.model.lib.RosettaModelObjectBuilder>
TreKey(T builder) static <T extends com.rosetta.model.lib.RosettaModelObject>
TresolveReferences(T object) static <B extends com.rosetta.model.lib.RosettaModelObjectBuilder,O extends com.rosetta.model.lib.RosettaModelObject>
List<B>
-
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
- 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
-
toBuilder
-
build
-