(LoadContext context, CDOMObject pcc)
| 129 | } |
| 130 | |
| 131 | @Override |
| 132 | public String[] unparse(LoadContext context, CDOMObject pcc) |
| 133 | { |
| 134 | Changes<TransitionChoice<Kit>> changes = context.getObjectContext().getListChanges(pcc, ListKey.KIT_CHOICE); |
| 135 | if (changes == null || changes.isEmpty()) |
| 136 | { |
| 137 | // Zero indicates no Token |
| 138 | return null; |
| 139 | } |
| 140 | Collection<TransitionChoice<Kit>> added = changes.getAdded(); |
| 141 | Set<String> set = new TreeSet<>(); |
| 142 | for (TransitionChoice<Kit> tc : added) |
| 143 | { |
| 144 | String sb = tc.getCount() |
| 145 | + Constants.PIPE |
| 146 | + tc.getChoices().getLSTformat().replaceAll(Constants.COMMA, Constants.PIPE); |
| 147 | set.add(sb); |
| 148 | } |
| 149 | return set.toArray(new String[0]); |
| 150 | } |
| 151 | |
| 152 | @Override |
| 153 | public Class<CDOMObject> getTokenClass() |
nothing calls this directly
no test coverage detected