Remove executable bit
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / Node.java
index bf32dfe9bd30e9c4cc7689578fb3c94d0071e8cf..6032b0dfe6534aab9823c9c7c1bee10905ddb7a1 100644 (file)
@@ -1,42 +1,46 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.yang.data.api;\r
-\r
-import org.opendaylight.yangtools.yang.common.QName;\r
-\r
-/**\r
- * Base representation of node in the data tree, defines basic parameters of\r
- * node such as a QName.\r
- *\r
- *\r
- * @param <T>\r
- */\r
-public interface Node<T> {\r
-\r
-    /**\r
-     * Returns the name of the Node\r
-     *\r
-     * @return qName of node\r
-     */\r
-    QName getNodeType();\r
-\r
-    /**\r
-     * Returns parent node\r
-     *\r
-     * @return parent node\r
-     */\r
-    CompositeNode getParent();\r
-\r
-    /**\r
-     * Returns the value that holds current node, if no value is defined method\r
-     * can return <code>null</code>\r
-     *\r
-     * @return Returns the value that holds current node.\r
-     */\r
-    T getValue();\r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.yang.data.api;
+
+import java.util.Map.Entry;
+
+import org.opendaylight.yangtools.yang.common.QName;
+
+/**
+ * Base representation of node in the data tree, defines basic parameters of
+ * node such as a QName.
+ *
+ *
+ * @param <T>
+ */
+public interface Node<T> extends Entry<QName, T> {
+
+    /**
+     * Returns the name of the Node
+     *
+     * @return qName of node
+     */
+    QName getNodeType();
+
+    /**
+     * Returns parent node
+     *
+     * @return parent node
+     */
+    @Deprecated
+    CompositeNode getParent();
+
+    /**
+     * Returns the value that holds current node, if no value is defined method
+     * can return <code>null</code>
+     *
+     * @return Returns the value that holds current node.
+     */
+    @Override
+    T getValue();
+}