270f46331e7a6ae0f6fa3a64979363c9ccb91d8f
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / DataContainerNode.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. 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 java.util.Collection;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
12
13 /**
14  *
15  * Abstract node which does not have value but contains valid {@link DataContainerChild} nodes.
16  *
17  * Schema of this node is described by instance of {@link org.opendaylight.yangtools.yang.model.api.DataNodeContainer}.
18  *
19  * <h2>Implementation notes</h2>
20  * This interface should not be implemented directly, but rather implementing one of it's subclasses
21  * <ul>
22  * <li>{@link ContainerNode}
23  * <li>{@link MapEntryNode}
24  * <li>{@link UnkeyedListEntryNode}
25  * <li>{@link ChoiceNode}
26  * <li>{@link AugmentationNode}
27  * </ul>
28  *
29  * @param <K> {@link PathArgument} which identifies instance of {@link DataContainerNode}
30  */
31 public interface DataContainerNode<K extends PathArgument> extends //
32         NormalizedNodeContainer<K, PathArgument, DataContainerChild<? extends PathArgument, ?>> {
33
34     /**
35      * Returns iteration of all child nodes
36      *
37      * Order of returned child nodes may be defined by subinterfaces.
38      *
39      * <b>Implementation Notes:</b>
40      * <p>
41      * All nodes returned in this iterable, MUST also be accessible via
42      * {@link #getChild(PathArgument)} using their associated identifier.
43      *
44      * @return Iteration of all child nodes
45      */
46     @Override
47     Collection<DataContainerChild<? extends PathArgument, ?>> getValue();
48 }