/** * Get the values of all readable fields on an object (may not all be writeable) * @param obj any object * @return a map of field name -> value * @throws IllegalArgumentException if the obj is null */ public Map<String, Object> getFieldValues(Object obj) { return getFieldValues(obj, FieldsFilter.READABLE, false); }
/** * Get the values of all readable fields on an object (may not all be writeable) * @param obj any object * @return a map of field name -> value * @throws IllegalArgumentException if the obj is null */ public Map<String, Object> getFieldValues(Object obj) { return getFieldValues(obj, FieldsFilter.READABLE, false); }
/** * Get a map of all fieldName -> value and all getterMethodName -> value without the word "get" * where the method takes no arguments, in other words, all values available from an object (readable values) * @param object any object * @param filter (optional) indicates the fields to return the values for, can be null for defaults * @param includeClassField if true then the value from the "getClass()" method is returned as part of the * set of object values with a type of {@link Class} and a field name of "class" * @return a map of name -> value * @throws IllegalArgumentException if failures occur */ public Map<String, Object> getObjectValues(Object object, FieldsFilter filter, boolean includeClassField) { return getFieldUtils().getFieldValues(object, filter, includeClassField); }
/** * Get a map of all fieldName -> value and all getterMethodName -> value without the word "get" * where the method takes no arguments, in other words, all values available from an object (readable values) * @param object any object * @param filter (optional) indicates the fields to return the values for, can be null for defaults * @param includeClassField if true then the value from the "getClass()" method is returned as part of the * set of object values with a type of {@link Class} and a field name of "class" * @return a map of name -> value * @throws IllegalArgumentException if failures occur */ public Map<String, Object> getObjectValues(Object object, FieldsFilter filter, boolean includeClassField) { return getFieldUtils().getFieldValues(object, filter, includeClassField); }
} else { convert = getFieldUtils().getFieldValues(value, FieldsFilter.COMPLETE, false);
} else { convert = getFieldUtils().getFieldValues(value, FieldsFilter.COMPLETE, false);
Map<String, Object> values = getFieldUtils().getFieldValues(orig, FieldsFilter.READABLE, false); for (Entry<String, Object> entry : values.entrySet()) { String name = entry.getKey();
Map<String, Object> values = getFieldUtils().getFieldValues(orig, FieldsFilter.READABLE, false); for (Entry<String, Object> entry : values.entrySet()) { String name = entry.getKey();