(String assoc)
| 524 | } |
| 525 | |
| 526 | public Prerequisite specify(String assoc) throws CloneNotSupportedException |
| 527 | { |
| 528 | final Prerequisite copy = (Prerequisite) super.clone(); |
| 529 | //PREMULT has no key or operand |
| 530 | if (copy.key != null) |
| 531 | { |
| 532 | copy.key = copy.key.replaceAll(PERCENT_CHOICE_PATTERN, assoc); |
| 533 | } |
| 534 | if (copy.operand != null) |
| 535 | { |
| 536 | copy.operand = copy.operand.replaceAll(PERCENT_CHOICE_PATTERN, assoc); |
| 537 | } |
| 538 | |
| 539 | if (prerequisites != null) |
| 540 | { |
| 541 | copy.prerequisites = new ArrayList<>(); |
| 542 | for (Prerequisite subreq : prerequisites) |
| 543 | { |
| 544 | copy.prerequisites.add(subreq.specify(assoc)); |
| 545 | } |
| 546 | } |
| 547 | return copy; |
| 548 | } |
| 549 | |
| 550 | public int getPrerequisiteCount() |
| 551 | { |
no test coverage detected