Class ReflectUtils
java.lang.Object
com.regnosys.rosetta.common.inspection.ReflectUtils
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated.static Class<?>genericType(Class<? extends com.rosetta.model.lib.RosettaModelObjectBuilder> clazz, String attributeName) Deprecated.static Class<?>getGenericType(Method method) Deprecated.static MethodDeprecated.static MethodDeprecated.static ObjectinvokeGetter(Object o, Method method) Deprecated.static booleanisRosettaModelObject(Class<?> returnType) Deprecated.Deprecated.Deprecated.static booleanreturnsList(Method method) Deprecated.static Class<?>returnType(Method method) Deprecated.rosettaReturnType(Method method) Deprecated.static voidsetChildBuilder(com.rosetta.model.lib.RosettaModelObjectBuilder parentBuilder, com.rosetta.model.lib.RosettaModelObjectBuilder childBuilder, String attributeName, int index) Deprecated.static Methodsetter(Class<? extends com.rosetta.model.lib.RosettaModelObjectBuilder> clazz, String attributeName, Class<?> attributeType) Deprecated.static Class<?>ultimateGenericType(Class<? extends com.rosetta.model.lib.RosettaModelObjectBuilder> clazz, String attributeName) Deprecated.Deprecated.Given a HierarchicalPath, this method reflectively gets the value from the rosetta instance.
-
Constructor Details
-
ReflectUtils
public ReflectUtils()Deprecated.
-
-
Method Details
-
returnType
Deprecated. -
getGenericType
Deprecated. -
returnsList
Deprecated. -
getMethod
public static Method getMethod(Class<?> originatingClass, String getter) throws NoSuchMethodException Deprecated.- Throws:
NoSuchMethodException
-
genericType
public static Class<?> genericType(Class<? extends com.rosetta.model.lib.RosettaModelObjectBuilder> clazz, String attributeName) Deprecated. -
ultimateGenericType
public static Class<?> ultimateGenericType(Class<? extends com.rosetta.model.lib.RosettaModelObjectBuilder> clazz, String attributeName) Deprecated. -
attrName
Deprecated. -
methods
Deprecated. -
methods
public static Set<Method> methods(Class<?> clazz, com.google.common.base.Predicate<? super Method> methodFilter) Deprecated. -
isRosettaModelObject
Deprecated. -
rosettaReturnType
public static Optional<Class<? extends com.rosetta.model.lib.RosettaModelObject>> rosettaReturnType(Method method) Deprecated. -
setter
public static Method setter(Class<? extends com.rosetta.model.lib.RosettaModelObjectBuilder> clazz, String attributeName, Class<?> attributeType) throws NoSuchMethodException, NoSuchFieldException Deprecated. -
valueOf
public static Optional<Object> valueOf(Object object, com.rosetta.model.lib.path.RosettaPath hierarchicalPath) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException Deprecated.Given a HierarchicalPath, this method reflectively gets the value from the rosetta instance.- Parameters:
object-hierarchicalPath-- Returns:
- Throws:
NoSuchMethodExceptionIllegalAccessExceptionInvocationTargetException
-
setChildBuilder
public static void setChildBuilder(com.rosetta.model.lib.RosettaModelObjectBuilder parentBuilder, com.rosetta.model.lib.RosettaModelObjectBuilder childBuilder, String attributeName, int index) throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchFieldException, NoSuchMethodException Deprecated. -
getter
public static Method getter(Class<? extends com.rosetta.model.lib.RosettaModelObject> clazz, String attributeName) Deprecated. -
invokeGetter
Deprecated.
-