Seal NormalizedNode hierarchy
[yangtools.git] / data / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / DistinctNodeContainer.java
index cafeb01d83bb4067ab744139db1ce7c92e5553d8..0e17be63eb0ad1ddab7a75a7347e2b9dd0191710 100644 (file)
@@ -23,7 +23,8 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgum
  * @param <K> Child path argument type
  * @param <V> Child Node type
  */
-public non-sealed interface DistinctNodeContainer<K extends PathArgument, V extends NormalizedNode>
-        extends DistinctContainer<K, V>, NormalizedNodeContainer<V> {
+public sealed interface DistinctNodeContainer<K extends PathArgument, V extends NormalizedNode>
+        extends DistinctContainer<K, V>, NormalizedNodeContainer<V>
+        permits DataContainerNode, LeafSetNode, MapNode {
     // Composition of DistinctContainer and NormalizedNodeContainer
 }