Merge "BUG-1305: improved antlr grammar handling of unknown nodes."
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / builder / api / ListNodeBuilder.java
index 41aeae367a79f1242d5b2d7d543706e0b82a0d83..5844f2ee30b94d4f83af696e10fe60e421121089 100644 (file)
@@ -8,21 +8,29 @@
 package org.opendaylight.yangtools.yang.data.impl.schema.builder.api;
 
 import java.util.List;
+import java.util.Map;
 
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
+import org.opendaylight.yangtools.yang.common.QName;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
+import org.opendaylight.yangtools.yang.data.api.schema.LeafSetEntryNode;
 import org.opendaylight.yangtools.yang.data.api.schema.LeafSetNode;
 
 public interface ListNodeBuilder<T, V>
-        extends CollectionNodeBuilder<V, LeafSetNode<T>> {
+        extends CollectionNodeBuilder<LeafSetEntryNode<T>, LeafSetNode<T>> {
 
     @Override
-    ListNodeBuilder<T, V> withNodeIdentifier(InstanceIdentifier.NodeIdentifier nodeIdentifier);
+    ListNodeBuilder<T, V> withNodeIdentifier(YangInstanceIdentifier.NodeIdentifier nodeIdentifier);
 
     @Override
-    ListNodeBuilder<T, V> withValue(List<V> value);
+    ListNodeBuilder<T, V> withValue(List<LeafSetEntryNode<T>> value);
 
     @Override
-    ListNodeBuilder<T, V> withChild(V child);
+    ListNodeBuilder<T, V> withChild(LeafSetEntryNode<T> child);
+
+    @Override
+    ListNodeBuilder<T, V> withoutChild(YangInstanceIdentifier.PathArgument key);
 
     ListNodeBuilder<T, V> withChildValue(T child);
+
+    ListNodeBuilder<T, LeafSetEntryNode<T>> withChildValue(T value, Map<QName, String> attributes);
 }