Remove NormalizedNode.getNodeType()
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / LeafSetEntryNode.java
index 5c5d8603cface33d3208e3bf1734aa400cda9c2f..86debe7c0cbb5b49eb0dece200bf8fee73157ecd 100644 (file)
@@ -7,36 +7,24 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema;
 
-import org.opendaylight.yangtools.yang.data.api.AttributesContainer;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithValue;
 
 /**
- * Leaf node with multiplicity 0...n.
+ * Leaf node with multiplicity 0...n. 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.LeafListSchemaNode}.
  *
- * <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.LeafListSchemaNode}.
- *
- * @param <T>
- *            Value type
+ * @param <T> Value type
  */
-public interface LeafSetEntryNode<T> extends AttributesContainer, 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>
-     * <h3>Implementation notes</h3> Invocation of
-     * {@link NodeWithValue#getValue()} on returned instance of
-     * {@link NodeWithValue} must returns
-     * same value as invocation of {@link #getValue()}, such as
-     * following condition is allways met:
-     * <code>true == this.getIdentifier().getValue().equals(this.getValue())</code>
-     *
-     * @return {@link NodeWithValue} which identifies this leaf set entry.
+     * <b>Implementation note</b>
+     * Invocation of {@link NodeWithValue#getValue()} on returned instance of {@link NodeWithValue} must return the
+     * 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();
 }