@Override
public NodeCodecContext<?> yangPathArgumentChild(final YangInstanceIdentifier.PathArgument arg) {
- final DataContainerCodecPrototype<?> cazeProto = byYangCaseChild.get(arg);
+ final DataContainerCodecPrototype<?> cazeProto;
+ if (arg instanceof YangInstanceIdentifier.NodeIdentifierWithPredicates) {
+ cazeProto = byYangCaseChild.get(new NodeIdentifier(arg.getNodeType()));
+ } else {
+ cazeProto = byYangCaseChild.get(arg);
+ }
+
childNonNull(cazeProto != null, arg,"Argument %s is not valid child of %s", arg, getSchema());
return cazeProto.get().yangPathArgumentChild(arg);
}