* {@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();
+ }
}