Merge "Added more Rpc markers to yang-binding."
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / builder / api / DataSchemaNodeBuilder.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.parser.builder.api;
9
10 import org.opendaylight.yangtools.yang.common.QName;
11 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
12 import org.opendaylight.yangtools.yang.model.api.YangNode;
13 import org.opendaylight.yangtools.yang.parser.builder.impl.ConstraintsBuilder;
14
15 /**
16  * Interface for all yang data-schema nodes [anyxml, case, container, grouping,
17  * list, module, notification].
18  */
19 public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember {
20
21     void setQName(QName qname);
22
23     /**
24      * Build DataSchemaNode object from this builder.
25      */
26     DataSchemaNode build(YangNode parent);
27
28     /**
29      *
30      * @return true, if this node is added by augmentation, false otherwise
31      */
32     boolean isAugmenting();
33
34     /**
35      * Set if this node is added by augmentation.
36      *
37      * @param augmenting
38      */
39     void setAugmenting(boolean augmenting);
40
41     /**
42      * Get value of config statement.
43      *
44      * @return value of config statement
45      */
46     Boolean isConfiguration();
47
48     /**
49      * Set config statement.
50      *
51      * @param config
52      */
53     void setConfiguration(Boolean config);
54
55     /**
56      * Get constraints of this builder.
57      *
58      * @return constraints of this builder
59      */
60     ConstraintsBuilder getConstraints();
61
62 }