Fix minor bug in FRM proactive flow code path
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-data-api / src / main / java / org / opendaylight / controller / yang / data / api / Node.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.data.api;\r
9 \r
10 import org.opendaylight.controller.yang.common.QName;\r
11 \r
12 /**\r
13  * Base representation of node in the data tree, defines basic parameters of\r
14  * node such as a QName.\r
15  * \r
16  * \r
17  * @param <T>\r
18  */\r
19 public interface Node<T> {\r
20 \r
21     /**\r
22      * Returns the name of the Node\r
23      * \r
24      * @return qName of node\r
25      */\r
26     QName getNodeType();\r
27 \r
28     /**\r
29      * Returns parent node\r
30      * \r
31      * @return parent node\r
32      */\r
33     CompositeNode getParent();\r
34 \r
35     /**\r
36      * Returns the value that holds current node, if no value is defined method\r
37      * can return <code>null</code>\r
38      * \r
39      * @return Returns the value that holds current node.\r
40      */\r
41     T getValue();\r
42 }\r