Disconnect NormalizedNode from Identifiable
[yangtools.git] / data / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / LeafSetEntryNode.java
index 9c7df8a6c456cf496bdaff05bcef256727169474..d563a91a963fd41ddabf039d1a0ea3f04447325a 100644 (file)
@@ -32,5 +32,20 @@ public non-sealed interface LeafSetEntryNode<T> extends ValueNode<T> {
      * {@code true == this.getIdentifier().getValue().equals(this.body())}.
      */
     @Override
-    NodeWithValue<T> getIdentifier();
+    NodeWithValue<T> name();
+
+    /**
+     * {@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 {@code #body()}, such as following condition is always met:
+     * {@code true == this.getIdentifier().getValue().equals(this.body())}.
+     */
+    @Override
+    @Deprecated(since = "11.0.0", forRemoval = true)
+    default NodeWithValue<T> getIdentifier() {
+        return name();
+    }
 }