Deprecate CopyableNode at al.
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / GroupingDefinition.java
index 16318910e96a3e3490f57b115f48996571e1fef7..9258675cf2f829cf627a2c9c52b2c548b2e2dea2 100644 (file)
@@ -13,15 +13,13 @@ package org.opendaylight.yangtools.yang.model.api;
  * <p>
  * It is used to define a reusable block of nodes, which may be used locally in
  * the module, in modules that include it, and by other modules that import from it.
+ *
+ * <p>
+ * Note: this interface extends {@link AddedByUsesAware}, but this contradicts the javadoc of {@link #isAddedByUses()},
+ *       as groupings can never be encountered in 'data schema node' context. It is their children, which are data
+ *       schema node, but those really are instantiated and typically differ in {@link #getQName()}'s namespace.
  */
 public interface GroupingDefinition extends DataNodeContainer, SchemaNode, NotificationNodeContainer,
-       ActionNodeContainer {
-    /**
-     * Returns <code>true</code> if the data node was added by uses statement,
-     * otherwise returns <code>false</code>.
-     *
-     * @return <code>true</code> if the data node was added by uses statement,
-     *         otherwise returns <code>false</code>
-     */
-    boolean isAddedByUses();
+       ActionNodeContainer, AddedByUsesAware {
+
 }