Deprecate CopyableNode at al.
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / CopyableNode.java
index 4dba5a251d1e16ea6e3cef7012d3204e8a33677e..b7f38a8426f06d75e8e5e826c2587875e1015995 100644 (file)
@@ -7,13 +7,17 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-import com.google.common.annotations.Beta;
+import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
 /**
  * Represents a node that can be added by uses or by augmentation.
+ *
+ * @deprecated Aside from the deprecated {@link AddedByUsesAware} contract, this interface adds only a trait related
+ *             to now how we arrived at this effective node. Users who need to know this information should really be
+ *             looking at the {@link DeclaredStatement} world, which holds the original node definition.
  */
-@Beta
-public interface CopyableNode {
+@Deprecated
+public interface CopyableNode extends AddedByUsesAware {
     /**
      * Returns <code>true</code> if this node was added by augmentation,
      * otherwise returns <code>false</code>.
@@ -22,13 +26,4 @@ public interface CopyableNode {
      *         otherwise returns <code>false</code>
      */
     boolean isAugmenting();
-
-    /**
-     * Returns <code>true</code> if this node was added by uses statement,
-     * otherwise returns <code>false</code>.
-     *
-     * @return <code>true</code> if this node was added by uses statement,
-     *         otherwise returns <code>false</code>
-     */
-    boolean isAddedByUses();
 }