2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.model.api;
10 import com.google.common.collect.ImmutableList;
11 import java.util.Collection;
12 import java.util.List;
13 import javax.annotation.Nonnull;
14 import org.opendaylight.yangtools.yang.common.QName;
17 * Interface describing YANG 'list' statement.
19 * The 'list' statement is used to define an interior data node in the schema
20 * tree. A list entry is uniquely identified by the values of the list's keys,
24 public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, DataSchemaNode, NotificationNodeContainer,
28 * @return List of QNames of leaf identifiers of this list
30 List<QName> getKeyDefinition();
33 * YANG 'ordered-by' statement. It defines whether the order of entries
34 * within a list are determined by the user or the system. If not present,
37 * @return true if ordered-by argument is "user", false otherwise
39 boolean isUserOrdered();
42 * @return Collection of unique constraints of this list schema node
45 default Collection<UniqueConstraint> getUniqueConstraints() {
46 return ImmutableList.of();