Rename {Data,Schema}TreeAwareEffectiveStatement.Namespace
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / stmt / DataTreeAwareEffectiveStatement.java
index 897dabb20e137183bb9889132abc17d89b2f50d0..1788a89afe408c2478f8085312e42b96cae02d8a 100644 (file)
@@ -22,23 +22,22 @@ import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
  *
  * @param <A> Argument type
  * @param <D> Class representing declared version of this statement.
- * @author Robert Varga
  */
 @Beta
 public interface DataTreeAwareEffectiveStatement<A, D extends DeclaredStatement<A>>
         extends SchemaTreeAwareEffectiveStatement<A, D> {
     /**
-     * Namespace of {@code data node}s. This is a subtree of {@link SchemaTreeAwareEffectiveStatement.Namespace} in that
-     * all data nodes are also schema nodes. The structure of the tree is different, though, as {@code choice}
-     * and {@code case} statements are glossed over and they do not contribute to the tree hierarchy -- only their
-     * children do.
+     * Namespace of {@code data node}s. This is a subtree of
+     * {@link SchemaTreeAwareEffectiveStatement.SchemaTreeNamespace} in that all data nodes are also schema nodes. The
+     * structure of the tree is different, though, as {@code choice} and {@code case} statements are glossed over and
+     * they do not contribute to the tree hierarchy -- only their children do.
      *
      * <p>
      * This corresponds to the {@code data tree} view of a YANG-defined data.
      */
     @NonNullByDefault
-    abstract class Namespace extends EffectiveStatementNamespace<DataTreeEffectiveStatement<?>> {
-        private Namespace() {
+    abstract class DataTreeNamespace extends EffectiveStatementNamespace<DataTreeEffectiveStatement<?>> {
+        private DataTreeNamespace() {
             // Should never be instantiated
         }
     }
@@ -51,7 +50,7 @@ public interface DataTreeAwareEffectiveStatement<A, D extends DeclaredStatement<
      * @throws NullPointerException if {@code qname} is null
      */
     default @NonNull Optional<DataTreeEffectiveStatement<?>> findDataTreeNode(final @NonNull QName qname) {
-        return get(Namespace.class, requireNonNull(qname));
+        return get(DataTreeNamespace.class, requireNonNull(qname));
     }
 
     /**