(Map<String, String> paraMap, boolean onlyValue, String paraConnector)
| 585 | } |
| 586 | |
| 587 | public String combineString(Map<String, String> paraMap, boolean onlyValue, String paraConnector) { |
| 588 | getSecKeyConfig(); |
| 589 | |
| 590 | String finalString = ""; |
| 591 | |
| 592 | |
| 593 | if (howDealKey.equals("sameAsPara")){ |
| 594 | secretKey = textFieldSecretKey.getText(); |
| 595 | if(secretKey.contains("=") & secretKey.split("=").length==2){ |
| 596 | paraMap.put(secretKey.split("=")[0], secretKey.split("=")[1]); |
| 597 | } |
| 598 | } |
| 599 | |
| 600 | |
| 601 | if (sortedColumn == -1 || lblOrderMethod.equals("Custom Order")){//������� |
| 602 | for(Map.Entry<String,String>para:paraMap.entrySet()){ |
| 603 | if (!finalString.equals("")){ |
| 604 | finalString += paraConnector; |
| 605 | } |
| 606 | if (onlyValue){ |
| 607 | finalString += para.getValue(); |
| 608 | }else { |
| 609 | finalString += para; |
| 610 | } |
| 611 | } |
| 612 | }else if(sortedColumn == 0) { |
| 613 | if (sortedMethod.toString() == "ASCENDING"){ |
| 614 | finalString = custom.CMapSort.combineMapEntry(custom.CMapSort.sortMapByKey(paraMap,"ASCENDING"), onlyValue, paraConnector); |
| 615 | }else if (sortedMethod.toString() == "DESCENDING") { |
| 616 | finalString = custom.CMapSort.combineMapEntry(custom.CMapSort.sortMapByKey(paraMap,"DESCENDING"), onlyValue, paraConnector); |
| 617 | } |
| 618 | } |
| 619 | else if (sortedColumn == 1) { |
| 620 | if (sortedMethod.toString() == "ASCENDING"){ |
| 621 | finalString = custom.CMapSort.combineMapEntry(custom.CMapSort.sortMapByValue(paraMap,"ASCENDING"), onlyValue, paraConnector); |
| 622 | }else if (sortedMethod.toString() == "DESCENDING") { |
| 623 | finalString = custom.CMapSort.combineMapEntry(custom.CMapSort.sortMapByValue(paraMap,"DESCENDING"), onlyValue, paraConnector); |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | |
| 628 | if (howDealKey.equals("appendToEnd")){ |
| 629 | secretKey = textFieldSecretKey.getText(); |
| 630 | finalString += secretKey; |
| 631 | } |
| 632 | return finalString; |
| 633 | } |
| 634 | |
| 635 | |
| 636 | public LinkedHashMap<String, String> getPara(IRequestInfo analyzeRequest){ |
no test coverage detected