Add DataTreeAwareEffectiveStatement
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ListSchemaNode.java
index 5e636f4e06b1615eb6d2ae20acb5bf3cb5e932c8..7175a9c478ce66e85ebac58b08680d1fbce85ec0 100644 (file)
@@ -7,7 +7,6 @@
  */
 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;
@@ -15,15 +14,16 @@ import org.opendaylight.yangtools.yang.common.QName;
 
 /**
  * Interface describing YANG 'list' statement.
+ *
  * <p>
- * The 'list' statement is used to define an interior data node in the schema
- * tree. A list entry is uniquely identified by the values of the list's keys,
- * if defined.
- * </p>
+ * The 'list' statement is used to define an interior data node in the schema tree. A list entry is uniquely identified
+ * by the values of the list's keys, if defined.
  */
-public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, DataSchemaNode, NotificationNodeContainer {
-
+public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, DataSchemaNode,
+        NotificationNodeContainer, ActionNodeContainer, ElementCountConstraintAware, MustConstraintAware {
     /**
+     * Returns the list of leaf identifiers.
+     *
      * @return List of QNames of leaf identifiers of this list
      */
     List<QName> getKeyDefinition();
@@ -38,10 +38,10 @@ public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, D
     boolean isUserOrdered();
 
     /**
+     * Returns unique constraints.
+     *
      * @return Collection of unique constraints of this list schema node
      */
     @Nonnull
-    default Collection<UniqueConstraint> getUniqueConstraints() {
-        return ImmutableList.of();
-    }
+    Collection<UniqueConstraint> getUniqueConstraints();
 }