Initial opendaylight infrastructure commit!!
[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 represents configuration data,\r
23      * otherwise returns <code>false</code>\r
24      * \r
25      * @return <code>true</code> if the data represents configuration data,\r
26      *         otherwise returns <code>false</code>\r
27      */\r
28     boolean isConfiguration();\r
29 \r
30     /**\r
31      * Returns the constraints associated with Data Schema Node\r
32      * \r
33      * @return the constraints associated with Data Schema Node\r
34      */\r
35     ConstraintDefinition getConstraints();\r
36 }\r