Remove AugmentationSchemaNode.getOriginalDefinition()
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / AugmentationSchemaNode.java
index ac44a33246a32b6bc7233025c9cb13b134055e00..dab265fa752cd36de25eb7d3e934fca77d9c563b 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-import java.util.Optional;
 import org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus;
 import org.opendaylight.yangtools.yang.model.api.stmt.AugmentEffectiveStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
@@ -20,24 +19,13 @@ import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
 public interface AugmentationSchemaNode extends DataNodeContainer, NotificationNodeContainer, ActionNodeContainer,
         WhenConditionAware, WithStatus, EffectiveStatementEquivalent<AugmentEffectiveStatement> {
     /**
-     * Returns augmentation schema path.
+     * Returns augmentation target path.
      *
-     * @return SchemaNodeIdentifier that identifies a node in the schema tree. This node
-     *         is called the augment's target node. The target node MUST be
-     *         either a container, list, choice, case, input, output, or
-     *         notification node. It is augmented with the nodes defined as
-     *         child nodes of this AugmentationSchema.
+     * @return SchemaNodeIdentifier that identifies a node in the schema tree. This node is called the augment's target
+     *         node. The target node MUST be either a container, list, choice, case, input, output, or anotification
+     *         node. It is augmented with the nodes defined as child nodes of this AugmentationSchema.
      */
     default SchemaNodeIdentifier getTargetPath() {
         return asEffectiveStatement().argument();
     }
-
-    /**
-     * Returns Augmentation Definition from which this augmentation is derived
-     * if augmentation was added transitively via augmented uses.
-     *
-     * @return Augmentation Definition from which this augmentation is derived
-     *         if augmentation was added transitively via augmented uses.
-     */
-    Optional<AugmentationSchemaNode> getOriginalDefinition();
 }