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.yangtools.yang.parser.builder.api;
10 import java.util.List;
12 import org.opendaylight.yangtools.yang.model.api.GroupingDefinition;
15 * Interface for builders of 'grouping' statement.
17 * @deprecated Pre-Beryllium implementation, scheduled for removal.
20 public interface GroupingBuilder extends DataNodeContainerBuilder, SchemaNodeBuilder, GroupingMember {
23 * Build GroupingDefinition object from this builder.
25 * @return Instance of {@link GroupingDefinition} described by this builder.
28 GroupingDefinition build();
32 * Returns instantiation of grouping child nodes under supplied builder.
34 * Supplied newParent is not modified.
36 * For each {@link #getChildNodeBuilders()} new builder is created,
37 * which has supplied new parent set as their {@link Builder#getParent()}
38 * and QNames have updated namespace and revision per supplied parent
41 * @param newParent Parent node, under which this grouping should be instantiated.
42 * @return List of new builders representing instantiation of this grouping.
44 List<DataSchemaNodeBuilder> instantiateChildNodes(Builder newParent);
49 * Returns instantiation of grouping type definitions under supplied builder.
51 * Supplied newParent is not modified.
53 * For each {@link #getTypeDefinitionBuilders()} new builder is created,
54 * which has supplied new parent set as their {@link Builder#getParent()}
55 * and QNames have updated namespace and revision per supplied parent
58 * @param newParent Parent node, under which this grouping should be instantiated.
59 * @return Set of new builders representing instantiation of this grouping.
61 Set<TypeDefinitionBuilder> instantiateTypedefs(Builder newParent);
65 * Returns instantiation of grouping definitions under supplied builder.
67 * Supplied newParent is not modified.
69 * For each {@link #getGroupingBuilders()} new builder is created,
70 * which has supplied new parent set as their {@link Builder#getParent()}
71 * and QNames have updated namespace and revision per supplied parent
74 * @param newParent Parent node, under which this grouping should be instantiated.
75 * @return Set of new builders representing instantiation of this grouping.
77 Set<GroupingBuilder> instantiateGroupings(Builder newParent);
81 * Returns instantiation of unknown nodes under supplied builder.
83 * Supplied newParent is not modified.
85 * For each {@link #getUnknownNodes()} new builder is created,
86 * which has supplied new parent set as their {@link Builder#getParent()}
87 * and QNames have updated namespace and revision per supplied parent
90 * @param newParent Parent node, under which this grouping should be instantiated.
91 * @return Set of new builders representing instantiation of this grouping.
93 Set<UnknownSchemaNodeBuilder> instantiateUnknownNodes(Builder newParent);