/** * Set multiple properties of a bean at once using properties of another bean. * The beans may be of different types and any properties not common to both types * shall be ignored. * * @param obj The object to be manipulated. * @param src The object containing the properties to be copied. * @param allowedProperties If array is NOT null, only the properties matching names * passed here shall be set. */ public final static void setValues(Object obj, Object src, String[] allowedProperties) { setValues(obj, getValues(src, allowedProperties), allowedProperties); }
/** * Set multiple properties of a bean at once using properties of another bean. * The beans may be of different types and any properties not common to both types * shall be ignored. * * @param obj The object to be manipulated. * @param src The object containing the properties to be copied. * @param allowedProperties If array is NOT null, only the properties matching names * passed here shall be set. */ public final static void setValues(Object obj, Object src, String[] allowedProperties) { setValues(obj, getValues(src, allowedProperties), allowedProperties); }