Migrate Must/WhenStatementSupport to BaseStatementSupport
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / GroupingDefinition.java
index c711532516dbcdab9e3e47f86e9b417fb373bdf2..9258675cf2f829cf627a2c9c52b2c548b2e2dea2 100644 (file)
@@ -9,21 +9,17 @@ package org.opendaylight.yangtools.yang.model.api;
 
 /**
  * Interface describing YANG 'grouping' statement.
+ *
  * <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>
+ * 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 {
-
-    /**
-     * 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();
+public interface GroupingDefinition extends DataNodeContainer, SchemaNode, NotificationNodeContainer,
+       ActionNodeContainer, AddedByUsesAware {
 
 }