- input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);
- builder.setType(getType());
- input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);
- createPortAugmentation(input, builder);
- MaxLengthActionBuilder maxLen = new MaxLengthActionBuilder();
- maxLen.setMaxLength(input.readUnsignedShort());
- builder.addAugmentation(MaxLengthAction.class, maxLen.build());
+ input.skipBytes(2 * EncodeConstants.SIZE_OF_SHORT_IN_BYTES);
+ OutputActionCaseBuilder caseBuilder = new OutputActionCaseBuilder();
+ OutputActionBuilder actionBuilder = new OutputActionBuilder();
+ actionBuilder.setPort(new PortNumber((long) input.readUnsignedShort()));
+ actionBuilder.setMaxLength(input.readUnsignedShort());
+ caseBuilder.setOutputAction(actionBuilder.build());
+ builder.setActionChoice(caseBuilder.build());