Class GwtReflectorMap
- java.lang.Object
-
- de.knightsoftnet.validators.client.GwtReflectorMap
-
public class GwtReflectorMap extends Object
-
-
Constructor Summary
Constructors Constructor Description GwtReflectorMap()
-
-
-
Method Detail
-
put
public static void put(Class<?> clazz, Map<String,Object> map)
put entry into map.- Parameters:
clazz- class to get data frommap- field value map
-
get
public static Object get(Class<?> clazz, String fieldName) throws NoSuchMethodException, ReflectiveOperationException
read entry from reflector map.- Parameters:
clazz- class to get data fromfieldName- name of the field to get value from- Returns:
- object
- Throws:
NoSuchMethodException- if no getter exists for fieldNameReflectiveOperationException- if class is not reflected
-
-