public class ReflectionUtil extends Object
Constructor and Description |
---|
ReflectionUtil() |
Modifier and Type | Method and Description |
---|---|
static List |
convertValueToList(String value,
Class itemType) |
static Object |
convertValueToType(Object value,
Class<?> type) |
static List |
createNewList(Class type) |
static Map<String,Field> |
getAttrFieldsForType(Type gtype) |
static LinkedHashMap<String,String> |
getAttributeListWithJSonTypes(Class type,
AttributeKey attr) |
static String |
getTypeString(Type type,
Field field) |
static boolean |
isBasicType(Type type) |
static boolean |
isListType(Class type) |
static boolean |
isMapType(Class type) |
static <T> void |
merge(T source,
T dest) |
static Field |
resolveField(Class type,
AttributeKey attr) |
static void |
setAttributes(Object client,
List<AttributeOperation> attrs) |
public static boolean isListType(Class type)
public static boolean isBasicType(Type type)
public static boolean isMapType(Class type)
public static Object convertValueToType(Object value, Class<?> type) throws IOException
IOException
public static void setAttributes(Object client, List<AttributeOperation> attrs)
public static <T> void merge(T source, T dest)
public static LinkedHashMap<String,String> getAttributeListWithJSonTypes(Class type, AttributeKey attr)
public static Field resolveField(Class type, AttributeKey attr)
Copyright © 2021 JBoss by Red Hat. All rights reserved.