2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.yangtools.yang.model.api;
\r
10 import java.util.Set;
\r
12 import org.opendaylight.yangtools.yang.common.QName;
\r
15 * Node which can contains other nodes.
\r
17 public interface DataNodeContainer extends YangNode {
\r
19 YangNode getParent();
\r
22 * Returns set of all newly defined types within this DataNodeContainer.
\r
24 * @return typedef statements in lexicographical order
\r
26 Set<TypeDefinition<?>> getTypeDefinitions();
\r
29 * Returns set of all child nodes defined within this DataNodeContainer.
\r
31 * @return child nodes in lexicographical order
\r
33 Set<DataSchemaNode> getChildNodes();
\r
36 * Returns set of all groupings defined within this DataNodeContainer.
\r
38 * @return grouping statements in lexicographical order
\r
40 Set<GroupingDefinition> getGroupings();
\r
44 * QName of seeked child
\r
45 * @return child node of this DataNodeContainer if child with given name is
\r
46 * present, null otherwise
\r
48 DataSchemaNode getDataChildByName(QName name);
\r
52 * name of seeked child as String
\r
53 * @return child node of this DataNodeContainer if child with given name is
\r
54 * present, null otherwise
\r
56 DataSchemaNode getDataChildByName(String name);
\r
59 * @return Set of all uses nodes defined within this DataNodeContainer
\r
61 Set<UsesNode> getUses();
\r