public static void setValueOfModel ( Object model , OpenEngSBModelEntry entry , Object value ) throws NoSuchFieldException , IllegalArgumentException , IllegalAccessException { Class clazz = model . getClass ( ) ; Field field = clazz . getDeclaredField ( entry . getKey ( ) ) ; field . setAccessible ( true ) ; field . set ( model , value ) ; }
Sets the value of the field defined in the OpenEngSBModelEntry the the given model with reflection .