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 public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember {
19 * Get original builder definition from grouping, where it is defined.
21 * @return original builder definition from grouping if this node is added
22 * by uses, null otherwise
24 SchemaNodeBuilder getOriginal();
27 * Set original builder definition from grouping
30 * original builder definition from grouping
32 void setOriginal(SchemaNodeBuilder original);
36 * Returns true if product of this builder is added by augmentation.
38 * @return true, if this node is added by augmentation, false otherwise
40 boolean isAugmenting();
43 * Set if the product of the builder node is introduced by augmentation.
47 void setAugmenting(boolean augmenting);
50 * Get value of config statement.
52 * @return value of config statement
54 boolean isConfiguration();
57 * Set config statement to the product.
60 * @param config true if config true was set, false if config false was set.
62 void setConfiguration(boolean config);
65 * Get constraints of this builder.
67 * @return constraints of this builder
69 ConstraintsBuilder getConstraints();
72 * Build DataSchemaNode object from this builder.
74 * @return instance of {@link DataSchemaNode} based on the state present in this builder.
77 DataSchemaNode build();