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;
/**
* 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 node absolute schema node identifier.
*
* @return An identifier that points to the node in the schema tree where a deviation from the module occurs.
*/
- @NonNull Absolute getTargetPath();
+ default @NonNull Absolute getTargetPath() {
+ return asEffectiveStatement().argument();
+ }
/**
* Returns deviate children.