Populate data/ hierarchy
[yangtools.git] / data / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / UserLeafSetNode.java
diff --git a/data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/UserLeafSetNode.java b/data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/UserLeafSetNode.java
new file mode 100644 (file)
index 0000000..5045988
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.yang.data.api.schema;
+
+/**
+ * {@link LeafSetNode} which preserves user-supplied ordering. This node represents a data instance of
+ * a {@code leaf-list} with a {@code ordered-by user;} substatement.
+ *
+ * @param <T> Value type of Leaf entries
+ */
+public interface UserLeafSetNode<T> extends LeafSetNode<T>, OrderedNodeContainer<LeafSetEntryNode<T>> {
+    @Override
+    @SuppressWarnings("rawtypes")
+    default Class<UserLeafSetNode> contract() {
+        return UserLeafSetNode.class;
+    }
+}