import org.opendaylight.yangtools.yang.common.Empty;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithValue;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
+import org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack;
final class LeafListEntryContextNode extends AbstractLeafNodeContext<NodeWithValue<?>, LeafListSchemaNode> {
- LeafListEntryContextNode(final LeafListSchemaNode potential) {
- super(new NodeWithValue<>(potential.getQName(), Empty.getInstance()), potential);
+ LeafListEntryContextNode(final LeafListSchemaNode schema) {
+ // FIXME: Empty() here is NOT NICE -- it assumes the list is of such entries...
+ super(new NodeWithValue<>(schema.getQName(), Empty.value()), schema);
}
@Override
public boolean isKeyedEntry() {
return true;
}
+
+ @Override
+ protected void pushToStack(final SchemaInferenceStack stack) {
+ // No-op
+ }
}