Fix leafref require-instance implementation
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ListSchemaNode.java
index ad8d999816d3e2e9751a330ceb8f8421f890dc17..217b4a2f16f693fd77578aca375d79435017966a 100644 (file)
@@ -7,8 +7,10 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
+import com.google.common.collect.ImmutableList;
+import java.util.Collection;
 import java.util.List;
-
+import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.common.QName;
 
 /**
@@ -19,7 +21,8 @@ import org.opendaylight.yangtools.yang.common.QName;
  * if defined.
  * </p>
  */
-public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, DataSchemaNode {
+public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, DataSchemaNode,
+        NotificationNodeContainer, ActionNodeContainer {
 
     /**
      * @return List of QNames of leaf identifiers of this list
@@ -30,9 +33,16 @@ public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, D
      * YANG 'ordered-by' statement. It defines whether the order of entries
      * within a list are determined by the user or the system. If not present,
      * default is false.
-     * 
+     *
      * @return true if ordered-by argument is "user", false otherwise
      */
     boolean isUserOrdered();
 
+    /**
+     * @return Collection of unique constraints of this list schema node
+     */
+    @Nonnull
+    default Collection<UniqueConstraint> getUniqueConstraints() {
+        return ImmutableList.of();
+    }
 }