}
@Override
+ @Deprecated
public Optional<SchemaPath> getSchemaPath() {
return Optional.of(SchemaPath.ROOT);
}
}
boolean isEnabledSemanticVersioningImpl() {
- return sourceContext.isEnabledSemanticVersioning();
+ return sourceContext.globalContext().isEnabledSemanticVersioning();
}
@NonNull YangVersion getRootVersionImpl() {
}
void setRootVersionImpl(final YangVersion version) {
- checkArgument(sourceContext.getSupportedVersions().contains(version),
+ checkArgument(sourceContext.globalContext().getSupportedVersions().contains(version),
"Unsupported yang version %s in %s", version, getStatementSourceReference());
checkState(this.rootVersion == null, "Version of root %s has been already set to %s", argument,
this.rootVersion);
}
void addMutableStmtToSealImpl(final MutableStatement mutableStatement) {
- sourceContext.addMutableStmtToSeal(mutableStatement);
+ sourceContext.globalContext().addMutableStmtToSeal(mutableStatement);
}
void addRequiredSourceImpl(final SourceIdentifier dependency) {