Redirect Builders through ImmutableNodes' builder factory
[yangtools.git] / data / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / DistinctNodeContainer.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.data.api.schema;
9
10 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
11
12 /**
13  * A {@link NormalizedNodeContainer} which contains directly-addressable children. It
14  *
15  * <p>
16  * NormalizedNodeContainer does not have a value, but it has a child nodes. Definition of possible and valid child nodes
17  * is introduced in subclasses of this interface.
18  *
19  * <p>
20  * This interface should not be used directly, but rather use of of derived subclasses such as
21  * {@link DataContainerNode}, {@link MapNode}, {@link LeafSetNode}.
22  *
23  * @param <K> Child path argument type
24  * @param <V> Child Node type
25  */
26 public non-sealed interface DistinctNodeContainer<K extends PathArgument, V extends NormalizedNode>
27         extends DistinctContainer<K, V>, NormalizedNodeContainer<V> {
28     // Composition of DistinctContainer and NormalizedNodeContainer
29 }