//Map的多参数风格
String[] arr = rowMapParm.split(MAP_CEL_SPLIT);
String[] itArr = null;
mapRowData = new LinkedHashMap
for(String it:arr)
{
//Map的键值分割
itArr = it.split(KEY_VALUE_SPLIT);
mapRowData.put(itArr[0], itArr[1]);
}
//压入List对象中
list.add(mapRowData);
}
}
//获取真正的对象
paramType[i] = List.class;
paramsValue[i] = NULL.equals(pVlaue)? null : list;
}
// List
// 匹配JavaBean的正则表达式
else if(ptype.matches("^(List)
{
//参数值
String typeName = paramTypesArr[i];
//获取真正的类型
typeName = typeName.substring(5,typeName.length()-1);
//定义新的List对象
List list = new ArrayList();
//分割
String[] pRow = pVlaue.split(LIST_ROW_SPLIT);
//建立对象
Object object = null;
for(int row = 0; row { String rowMapParm = pRow[row].replace("{", "").replace("}", ""); object = BuilderObject.builderObj(typeName); if(!"".equals(rowMapParm) && !NULL.equals(rowMapParm))
文章来源于领测软件测试网 https://www.ltesting.net/