(StringBuilder buffer, PersistentTransitionChoice<T> tc)
| 2658 | } |
| 2659 | |
| 2660 | private <T> void addChoices(StringBuilder buffer, PersistentTransitionChoice<T> tc) |
| 2661 | { |
| 2662 | List<Object> assocList = thePC.getAssocList(tc, AssociationListKey.ADD); |
| 2663 | if (assocList == null) |
| 2664 | { |
| 2665 | return; |
| 2666 | } |
| 2667 | // |
| 2668 | // |ADD:[PROMPT:SUBTOKEN|blah|CHOICE:choice1|CHOICE:choice2|CHOICE:choice3...] |
| 2669 | // |
| 2670 | SelectableSet<?> choices = tc.getChoices(); |
| 2671 | buffer.append('|').append(IOConstants.TAG_ADDTOKEN).append(':').append('['); |
| 2672 | buffer.append(EntityEncoder.encode(choices.getName())).append(':'); |
| 2673 | buffer.append(EntityEncoder.encode(choices.getLSTformat())); |
| 2674 | |
| 2675 | for (Object assoc : assocList) |
| 2676 | { |
| 2677 | buffer.append('|').append(IOConstants.TAG_CHOICE).append(':') |
| 2678 | .append(EntityEncoder.encode(tc.encodeChoice(tc.castChoice(assoc)))); |
| 2679 | } |
| 2680 | |
| 2681 | buffer.append(']'); |
| 2682 | } |
| 2683 | |
| 2684 | } |
no test coverage detected