/** * Find a method with the right name If found, call the method ( if param is * int or boolean we'll convert value to the right type before) - that means * you can have setDebug(1). */ final public static boolean setProperty(Object o, String name, String value) { String setter = "set" + capitalize(name); return invokeProperty(o, setter, name, value); }
final public static boolean addProperty(Object o, String name, String value) { String setter = "add" + capitalize(name); return invokeProperty(o, setter, name, value); }
/** * Find a method with the right name If found, call the method ( if param is * int or boolean we'll convert value to the right type before) - that means * you can have setDebug(1). */ final public static boolean setProperty(Object o, String name, String value) { String setter = "set" + capitalize(name); return invokeProperty(o,setter,name,value); }
final public static boolean addProperty(Object o, String name, String value) { String setter = "add" + capitalize(name); return invokeProperty(o,setter,name,value); }