13b7e4874e533b0290b09592950b86a3d19e4c59
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / main / java / org / opendaylight / controller / yang / parser / builder / api / DataNodeContainerBuilder.java
1 /*
2  * Copyright (c) 2013 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.controller.yang.parser.builder.api;
9
10 import java.util.Set;
11
12 import org.opendaylight.controller.yang.common.QName;
13 import org.opendaylight.controller.yang.model.api.DataSchemaNode;
14 import org.opendaylight.controller.yang.model.api.GroupingDefinition;
15 import org.opendaylight.controller.yang.model.api.SchemaPath;
16
17 /**
18  * Interface for all yang data-node containers [augment, case, container,
19  * grouping, list, module, notification].
20  */
21 public interface DataNodeContainerBuilder extends Builder {
22
23     QName getQName();
24
25     SchemaPath getPath();
26
27     Set<DataSchemaNode> getChildNodes();
28
29     Set<DataSchemaNodeBuilder> getChildNodeBuilders();
30
31     void addChildNode(DataSchemaNodeBuilder childNode);
32
33     Set<GroupingDefinition> getGroupings();
34
35     Set<GroupingBuilder> getGroupingBuilders();
36
37     void addGrouping(GroupingBuilder groupingBuilder);
38
39     void addUsesNode(UsesNodeBuilder usesBuilder);
40
41     Set<TypeDefinitionBuilder> getTypeDefinitionBuilders();
42
43     void addTypedef(TypeDefinitionBuilder typedefBuilder);
44
45 }