import java.io.IOException;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
-import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode;
import org.opendaylight.yangtools.yang.data.api.schema.LeafNode;
+import org.opendaylight.yangtools.yang.data.api.schema.LeafSetEntryNode;
import org.opendaylight.yangtools.yang.data.api.schema.LeafSetNode;
import org.opendaylight.yangtools.yang.data.api.schema.MapNode;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
@Override
public YangInstanceIdentifier toYangInstanceIdentifier(final InstanceIdentifier<?> binding) {
- List<YangInstanceIdentifier.PathArgument> builder = new LinkedList<>();
- codecContext.getCodecContextNode(binding, builder);
return codecContext.getInstanceIdentifierCodec().serialize(binding);
}
if (data instanceof LeafSetNode) {
return false;
}
+ if( data instanceof LeafSetEntryNode<?>) {
+ return false;
+ }
if (data instanceof MapNode) {
return false;
}
final NodeCodecContext codec = codecContext.getCodecContextNode(path, builder);
if (codec == null) {
if (data != null) {
- LOG.warn("Path %s does not have a binding equivalent, should have been caught earlier (%s)", path, data.getClass());
+ LOG.warn("Path {} does not have a binding equivalent, should have been caught earlier ({})", path, data.getClass());
}
return null;
}