Rework NormalizedNode type hierarchy
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / LeafSetEntryNode.java
index 6a257f01245a2e6e54c7590abc3f6fa38b7b9536..86debe7c0cbb5b49eb0dece200bf8fee73157ecd 100644 (file)
@@ -15,18 +15,16 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithV
  *
  * @param <T> Value type
  */
-public interface LeafSetEntryNode<T> extends NormalizedNode<NodeWithValue, T>, ValueNode<NodeWithValue, T> {
+public interface LeafSetEntryNode<T> extends ValueNode<T> {
     /**
-     * Returns {@link NodeWithValue} which identifies this leaf set entry. Returned {@link NodeWithValue} contains same
-     * value as this node.
+     * {@inheritDoc}
      *
+     * <p>
      * <b>Implementation note</b>
      * Invocation of {@link NodeWithValue#getValue()} on returned instance of {@link NodeWithValue} must return the
-     * same value as invocation of {@link #getValue()}, such as following condition is always met:
-     * {@code true == this.getIdentifier().getValue().equals(this.getValue())}.
-     *
-     * @return {@link NodeWithValue} which identifies this leaf set entry.
+     * same value as invocation of {@code #body()}, such as following condition is always met:
+     * {@code true == this.getIdentifier().getValue().equals(this.body())}.
      */
     @Override
-    NodeWithValue getIdentifier();
+    NodeWithValue<T> getIdentifier();
 }