*/
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;
/**
* 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
* 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();
+ }
}