/** * Directly access a field for setting the objects. */ protected boolean setBulkField(String fieldname, Object parent, List objects, Object converter, AReadContext context, String idref) throws Exception { boolean set; try { Field field = parent.getClass().getField(fieldname); Class type = field.getType(); // object = convertAttributeValue(object, type, converter, root, classloader, idref, readobjects); Object arg = convertBulkValues(objects, type, converter, context, idref); field.set(parent, arg); set = true; } catch(Exception e) { // Ignore -> try other way of setting attribute set = false; } return set; }
if(ps.length==1) Object arg = convertBulkValues(vals, ps[0], converter, context, idref);
if(ps.length==1) Object arg = convertBulkValues(vals, ps[0], converter, context, id); try Object arg = convertBulkValues(vals, f.getType(), converter, context, id); f.set(object, arg); set = true; if(prop!=null) Object arg = convertBulkValues(vals, prop.getSetterType(), null, context, null);