Refactored parsing of YANG uses statement.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-api / src / main / java / org / opendaylight / controller / yang / model / api / DataSchemaNode.java
1 /*\r
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 package org.opendaylight.controller.yang.model.api;\r
9 \r
10 public interface DataSchemaNode extends SchemaNode {\r
11 \r
12     /**\r
13      * Returns <code>true</code> if the data node was added by augmentation,\r
14      * otherwise returns <code>false</code>\r
15      *\r
16      * @return <code>true</code> if the data node was added by augmentation,\r
17      *         otherwise returns <code>false</code>\r
18      */\r
19     boolean isAugmenting();\r
20 \r
21     /**\r
22      * Returns <code>true</code> if the data node was added by uses statement,\r
23      * otherwise returns <code>false</code>\r
24      *\r
25      * @return <code>true</code> if the data node was added by uses statement,\r
26      *         otherwise returns <code>false</code>\r
27      */\r
28     boolean isAddedByUses();\r
29 \r
30     /**\r
31      * Returns <code>true</code> if the data represents configuration data,\r
32      * otherwise returns <code>false</code>\r
33      *\r
34      * @return <code>true</code> if the data represents configuration data,\r
35      *         otherwise returns <code>false</code>\r
36      */\r
37     boolean isConfiguration();\r
38 \r
39     /**\r
40      * Returns the constraints associated with Data Schema Node\r
41      *\r
42      * @return the constraints associated with Data Schema Node\r
43      */\r
44     ConstraintDefinition getConstraints();\r
45 }\r