| | |
| | | Iterator nodes = rootnode.elementIterator("node_batt_num"); |
| | | BattgroupInfo battInfo=new BattgroupInfo(); |
| | | List<BattgroupData> battDataList=new ArrayList(); |
| | | |
| | | if(nodes!=null){ |
| | | while (nodes.hasNext()){ |
| | | node= (Element) nodes.next(); |
| | | BattgroupData battData=new BattgroupData(); |
| | |
| | | battData.setCr(file_node.getTextTrim()); |
| | | battDataList.add(battData); |
| | | } |
| | | } |
| | | battInfo.setBattDataList(battDataList); |
| | | battInfo.setTestTime(ActionUtil.sdfwithALL.parse(testTime)); |
| | | fileInfo.getBattInfoList().add(battInfo); |
| | | fileInfo.setFileParam(fparam); |
| | | fiso.close(); |
| | |
| | | |
| | | //-----根据groupNum的值读取测试数据---------------------------// |
| | | Iterator nodes = rootnode.elementIterator("node_group_num"); |
| | | if(nodes!=null){ |
| | | while (nodes.hasNext()){ |
| | | node= (Element) nodes.next(); |
| | | Iterator iterator1 = node.elementIterator(); |
| | |
| | | battInfo.setBattDataList(battDataList); |
| | | fileInfo.getBattInfoList().add(battInfo); |
| | | } |
| | | } |
| | | fileInfo.setFileParam(fparam); |
| | | fiso.close(); |
| | | } catch (NullPointerException | NumberFormatException | DocumentException | ParseException | FileNotFoundException e) { |