/** * Convert our parameter values to an Object array of the specified target * types. * * @param targetTypes Class[] An array containing the target class types. * @return Object[] The converted parameter values. */ private Object[] convertParams(Type[] targetTypes) throws ConversionException { Object[] paramValues = new Object[targetTypes.length]; for (int i = 0; i < targetTypes.length; i++) { paramValues[i] = params.get(i).convert(targetTypes[i]); } return paramValues; }
/** * Convert our parameter values to an Object array of the specified target * types. * * @param targetTypes * Class[] An array containing the target class types. * @return Object[] The converted parameter values. */ private Object[] convertParams(Type[] targetTypes) throws ConversionException { Object[] paramValues = new Object[targetTypes.length]; for (int i = 0; i < targetTypes.length; i++) { paramValues[i] = params.get(i).convert(targetTypes[i]); } return paramValues; }
/** * Convert our parameter values to an Object array of the specified target * types. * * @param targetTypes * Class[] An array containing the target class types. * @return Object[] The converted parameter values. */ private Object[] convertParams(Type[] targetTypes) throws ConversionException { Object[] paramValues = new Object[targetTypes.length]; for (int i = 0; i < targetTypes.length; i++) { paramValues[i] = params.get(i).convert(targetTypes[i]); } return paramValues; }
fieldValue = valueWrapper.convert(method != null ? method .getGenericParameterTypes()[0] : field.getGenericType()); } catch (ConversionException ex) {
try fieldValue = valueWrapper.convert(method != null ? method .getGenericParameterTypes()[0] : field.getGenericType());
fieldValue = w.convert(method != null ? method.getGenericParameterTypes()[0] : field.getGenericType());
if (!cloneBagContents(source.convert(t), ((Wrapper) targetBag).getValue())); cloneMapContents((Map) source.convert(t), (Map) targetMap); Wrapper source = model.getCallContext().createWrapperFromElement( (Element) changeset.element("bag")); cloneBagContents(source.convert(target.getValue().getClass()), target.getValue()); Wrapper source = model.getCallContext().createWrapperFromElement( (Element) changeset.element("map")); cloneMapContents((Map) source.convert(target.getValue().getClass()), (Map) target.getValue());
} else { Type t = ((BeanWrapper) target).getBeanPropertyType(name); if (!cloneBagContents(source.convert(t), ((Wrapper) targetBag).getValue())) { ((BeanWrapper) target).setBeanProperty(name, source); } else { Type t = ((BeanWrapper) target).getBeanPropertyType(name); cloneMapContents((Map<Object, Object>) source.convert(t), (Map<Object, Object>) targetMap); Wrapper source = model.getCallContext().createWrapperFromElement( (Element) changeset.element("bag")); cloneBagContents(source.convert(target.getValue().getClass()), target.getValue()); } else if (changeset.elements("map").size() > 0) { Wrapper source = model.getCallContext().createWrapperFromElement( (Element) changeset.element("map")); cloneMapContents((Map<Object, Object>) source.convert(target.getValue().getClass()), (Map<Object, Object>) target.getValue());