Move NormalizedNode builders
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / LeafNode.java
index 38aee4f11b3a923ed7c3a5e257f65ac3bfe87551..7b9a5d4611dc5bd61eda6fb010a03b9d7da85180 100644 (file)
@@ -7,31 +7,18 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema;
 
-import org.opendaylight.yangtools.yang.data.api.AttributesContainer;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
 
 /**
+ * Leaf node with multiplicity 0..1.
  *
- * Leaf node with multiplicity 0..1
- *
+ * <p>
  * Leaf node has a value, but no child nodes in the data tree, schema
  * for leaf node and its value is described by {@link org.opendaylight.yangtools.yang.model.api.LeafSchemaNode}.
  *
  * @param <T> Value type
  */
-public interface LeafNode<T> extends //
-        AttributesContainer,
-        DataContainerChild<NodeIdentifier, T> {
-
-
-    /**
-     *
-     * Returns value of this leaf node
-     *
-     * @return Returned value of this leaf node. Value SHOULD meet criteria defined by schema.
-     *
-     */
+public interface LeafNode<T> extends ValueNode<T>, DataContainerChild {
     @Override
-    T getValue();
-
+    NodeIdentifier getIdentifier();
 }