2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.yang.parser.builder.api;
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;
18 * Interface for all yang data-node containers [augment, case, container,
19 * grouping, list, module, notification].
21 public interface DataNodeContainerBuilder extends Builder {
24 * Get qname of this node.
26 * @return QName of this node
31 * Get schema path of this node.
33 * @return SchemaPath of this node
38 * Get already built child nodes.
40 * @return collection of child nodes
42 Set<DataSchemaNode> getChildNodes();
45 * Get builders of child nodes.
47 * @return collection child nodes builders
49 Set<DataSchemaNodeBuilder> getChildNodeBuilders();
52 * Get child node by name.
55 * name of child to seek
56 * @return child node with given name if present, null otherwise
58 DataSchemaNodeBuilder getDataChildByName(String name);
61 * Add builder of child node to this node.
65 void addChildNode(DataSchemaNodeBuilder childNode);
68 * Get already built groupings defined in this node.
70 * @return collection of GroupingDefinition objects
72 Set<GroupingDefinition> getGroupings();
75 * Get builders of groupings defined in this node.
77 * @return collection of grouping builders
79 Set<GroupingBuilder> getGroupingBuilders();
82 * Add builder of grouping statement to this node.
84 * @param groupingBuilder
86 void addGrouping(GroupingBuilder groupingBuilder);
89 * Add builder of uses statement to this node.
93 void addUsesNode(UsesNodeBuilder usesBuilder);
96 * Get builders of typedef statement defined in this node.
100 Set<TypeDefinitionBuilder> getTypeDefinitionBuilders();
103 * Add typedef builder to this node.
105 * @param typedefBuilder
107 void addTypedef(TypeDefinitionBuilder typedefBuilder);