Class ReflectionUtil
- java.lang.Object
-
- org.keycloak.client.registration.cli.util.ReflectionUtil
-
public class ReflectionUtil extends Object
- Author:
- Marko Strukelj
-
-
Constructor Summary
Constructors Constructor Description ReflectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ListconvertValueToList(String value, Class itemType)static ObjectconvertValueToType(Object value, Class<?> type)static ListcreateNewList(Class type)static Map<String,Field>getAttrFieldsForType(Type gtype)static LinkedHashMap<String,String>getAttributeListWithJSonTypes(Class type, AttributeKey attr)static StringgetTypeString(Type type, Field field)static booleanisBasicType(Type type)static booleanisListType(Class type)static booleanisMapType(Class type)static <T> voidmerge(T source, T dest)static FieldresolveField(Class type, AttributeKey attr)static voidsetAttributes(Object client, List<AttributeOperation> attrs)
-
-
-
Method Detail
-
isListType
public static boolean isListType(Class type)
-
isBasicType
public static boolean isBasicType(Type type)
-
isMapType
public static boolean isMapType(Class type)
-
convertValueToType
public static Object convertValueToType(Object value, Class<?> type) throws IOException
- Throws:
IOException
-
setAttributes
public static void setAttributes(Object client, List<AttributeOperation> attrs)
-
merge
public static <T> void merge(T source, T dest)
-
getAttributeListWithJSonTypes
public static LinkedHashMap<String,String> getAttributeListWithJSonTypes(Class type, AttributeKey attr)
-
resolveField
public static Field resolveField(Class type, AttributeKey attr)
-
-