Class ReflectionUtil
java.lang.Object
org.keycloak.client.registration.cli.util.ReflectionUtil
- Author:
- Marko Strukelj
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListconvertValueToList(String value, Class itemType) static ObjectconvertValueToType(Object value, Class<?> type) static ListcreateNewList(Class type) 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 booleanstatic <T> voidmerge(T source, T dest) static FieldresolveField(Class type, AttributeKey attr) static voidsetAttributes(Object client, List<AttributeOperation> attrs)
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
getAttrFieldsForType
-
isListType
-
isBasicType
-
isMapType
-
convertValueToType
- Throws:
IOException
-
setAttributes
-
createNewList
-
convertValueToList
-
merge
public static <T> void merge(T source, T dest) -
getAttributeListWithJSonTypes
public static LinkedHashMap<String,String> getAttributeListWithJSonTypes(Class type, AttributeKey attr) -
resolveField
-
getTypeString
-