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.model.parser.builder.api;
10 import java.util.HashSet;
13 import org.opendaylight.controller.yang.common.QName;
15 public abstract class AbstractChildNodeBuilder implements ChildNodeBuilder {
17 private final QName qname;
18 protected final Set<DataSchemaNodeBuilder> childNodes = new HashSet<DataSchemaNodeBuilder>();
19 protected final Set<GroupingBuilder> groupings = new HashSet<GroupingBuilder>();
21 protected AbstractChildNodeBuilder(QName qname) {
26 public QName getQName() {
31 public void addChildNode(DataSchemaNodeBuilder childNode) {
32 childNodes.add(childNode);
36 public void addGrouping(GroupingBuilder grouping) {
37 groupings.add(grouping);