import java.util.Collection;
import org.eclipse.jdt.annotation.NonNull;
+import org.opendaylight.yangtools.yang.model.api.stmt.DeviationEffectiveStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
/**
* Interface describing YANG 'deviation' statement.
* The 'deviation' statement defines a hierarchy of a module that the device does not implement faithfully. Deviations
* define the way a device deviate from a standard.
*/
-public interface Deviation extends DocumentedNode {
-
+public interface Deviation extends DocumentedNode, EffectiveStatementEquivalent<DeviationEffectiveStatement> {
/**
- * Returns target schema path.
+ * Returns target node absolute schema node identifier.
*
- * @return SchemaPath that identifies the node in the schema tree where a deviation from the module occurs.
+ * @return An identifier that points to the node in the schema tree where a deviation from the module occurs.
*/
- SchemaPath getTargetPath();
+ default @NonNull Absolute getTargetPath() {
+ return asEffectiveStatement().argument();
+ }
/**
* Returns deviate children.