4271776d63f4bca6dd11d5f1cff262abdfeebb55
[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     DataSchemaNodeBuilder getDataChildByName(String name);
32
33     void addChildNode(DataSchemaNodeBuilder childNode);
34
35     Set<GroupingDefinition> getGroupings();
36
37     Set<GroupingBuilder> getGroupingBuilders();
38
39     void addGrouping(GroupingBuilder groupingBuilder);
40
41     void addUsesNode(UsesNodeBuilder usesBuilder);
42
43     Set<TypeDefinitionBuilder> getTypeDefinitionBuilders();
44
45     void addTypedef(TypeDefinitionBuilder typedefBuilder);
46
47 }