Package step.handlers.javahandler
Class JsonInputConverter
- java.lang.Object
-
- step.handlers.javahandler.JsonInputConverter
-
public class JsonInputConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description JsonInputConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Field>
getAllFields(Class<?> cls)
static Object
getValueFromJsonInput(javax.json.JsonObject input, String name, Type type)
static Class<?>
resolveGenericTypeForCollection(Type type, String jsonName)
static void
writeField(Field field, Object target, Object value)
-
-
-
Method Detail
-
getValueFromJsonInput
public static Object getValueFromJsonInput(javax.json.JsonObject input, String name, Type type) throws Exception
- Throws:
Exception
-
resolveGenericTypeForCollection
public static Class<?> resolveGenericTypeForCollection(Type type, String jsonName)
-
writeField
public static void writeField(Field field, Object target, Object value) throws IllegalAccessException
- Throws:
IllegalAccessException
-
-