Rename ChoiceCaseNode to CaseSchemaNode
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / DataSchemaNode.java
index c43c340566ef361fda41a33d0f4d9bf8060a422c..c0e98d6256bbbd1a74c93e68ed9a28c3c7194cb1 100644 (file)
@@ -8,57 +8,28 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 /**
+ * Data Schema Node represents abstract supertype from which all data tree definitions are derived.
  *
- * Data Schema Node represents abstract supertype from which all data tree
- * definitions are derived.
- *
- * Contains the method which are used for getting metadata from the schema nodes
- * which contains data.
+ * <p>
+ * Common interface is composed of {@link #isConfiguration()}, governing validity in config/operation data stores
+ * and {@link WhenConditionAware} mixin, which governs validity based on other document data.
  *
  * @see ContainerSchemaNode
  * @see ListSchemaNode
  * @see LeafListSchemaNode
  * @see ChoiceSchemaNode
- * @see ChoiceCaseNode
+ * @see CaseSchemaNode
  * @see LeafSchemaNode
  * @see AnyXmlSchemaNode
  * @see AnyDataSchemaNode
- *
- *
  */
-public interface DataSchemaNode extends SchemaNode {
-
-    /**
-     * Returns <code>true</code> if the data node was added by augmentation,
-     * otherwise returns <code>false</code>
-     *
-     * @return <code>true</code> if the data node was added by augmentation,
-     *         otherwise returns <code>false</code>
-     */
-    boolean isAugmenting();
-
-    /**
-     * 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 DataSchemaNode extends SchemaNode, CopyableNode, WhenConditionAware {
     /**
      * Returns <code>true</code> if the data represents configuration data,
-     * otherwise returns <code>false</code>
+     * otherwise returns <code>false</code>.
      *
      * @return <code>true</code> if the data represents configuration data,
      *         otherwise returns <code>false</code>
      */
     boolean isConfiguration();
-
-    /**
-     * Returns the constraints associated with Data Schema Node
-     *
-     * @return the constraints associated with Data Schema Node
-     */
-    ConstraintDefinition getConstraints();
 }