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 org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
13 * Interface for all yang data-schema nodes [anyxml, case, container, grouping,
14 * list, module, notification].
16 * @deprecated Pre-Beryllium implementation, scheduled for removal.
19 public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember {
22 * Get original builder definition from grouping, where it is defined.
24 * @return original builder definition from grouping if this node is added
25 * by uses, null otherwise
27 SchemaNodeBuilder getOriginal();
30 * Set original builder definition from grouping
33 * original builder definition from grouping
35 void setOriginal(SchemaNodeBuilder original);
39 * Returns true if product of this builder is added by augmentation.
41 * @return true, if this node is added by augmentation, false otherwise
43 boolean isAugmenting();
46 * Set if the product of the builder node is introduced by augmentation.
48 * @param augmenting information about augmentation
50 void setAugmenting(boolean augmenting);
53 * Get value of config statement.
55 * @return value of config statement
57 boolean isConfiguration();
60 * Set config statement to the product.
63 * @param config true if config true was set, false if config false was set.
65 void setConfiguration(boolean config);
68 * Get constraints of this builder.
70 * @return constraints of this builder
72 ConstraintsBuilder getConstraints();
75 * Build DataSchemaNode object from this builder.
77 * @return instance of {@link DataSchemaNode} based on the state present in this builder.
80 DataSchemaNode build();