abstract class AbstractNotificationStatementSupport
extends BaseSchemaTreeStatementSupport<NotificationStatement, NotificationEffectiveStatement> {
AbstractNotificationStatementSupport() {
- super(YangStmtMapping.NOTIFICATION);
+ super(YangStmtMapping.NOTIFICATION, CopyPolicy.DECLARED_COPY);
}
@Override
try {
return new NotificationEffectiveStatementImpl(stmt.declared(), substatements,
- historyAndStatusFlags(stmt.history(), substatements), stmt.getSchemaPath());
+ historyAndStatusFlags(stmt.history(), substatements), stmt.wrapSchemaPath());
} catch (SubstatementIndexingException e) {
- throw new SourceException(e.getMessage(), stmt.sourceReference(), e);
+ throw new SourceException(e.getMessage(), stmt, e);
}
}