import org.opendaylight.yangtools.yang.parser.spi.SubmoduleNamespace;
import org.opendaylight.yangtools.yang.parser.spi.TypeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase;
-import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionModuleNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.StatementDefinitionNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupportBundle;
import org.opendaylight.yangtools.yang.parser.spi.source.BelongsToPrefixToModuleName;
import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToNamespace;
import org.opendaylight.yangtools.yang.parser.spi.source.ImportPrefixToModuleCtx;
-import org.opendaylight.yangtools.yang.parser.spi.source.ImportPrefixToSemVerSourceIdentifier;
import org.opendaylight.yangtools.yang.parser.spi.source.ImportedModuleContext;
import org.opendaylight.yangtools.yang.parser.spi.source.IncludedModuleContext;
import org.opendaylight.yangtools.yang.parser.spi.source.IncludedSubmoduleNameToModuleCtx;
return builder
// Semantic version support
.addStatementSupport(ModelProcessingPhase.SOURCE_LINKAGE, new OpenConfigVersionSupport(config))
- .addNamespaceSupport(ModelProcessingPhase.SOURCE_LINKAGE, SemanticVersionNamespace.BEHAVIOUR)
- .addNamespaceSupport(ModelProcessingPhase.SOURCE_LINKAGE, SemanticVersionModuleNamespace.BEHAVIOUR)
- .addNamespaceSupport(ModelProcessingPhase.SOURCE_LINKAGE,
- ImportPrefixToSemVerSourceIdentifier.BEHAVIOUR);
+ .addNamespaceSupport(ModelProcessingPhase.SOURCE_LINKAGE, SemanticVersionNamespace.BEHAVIOUR);
}
/**
private static @NonNull StatementSupportBundle fullDeclarationBundle(final StatementSupportBundle stmtDefBundle,
final XPathSupport xpathSupport, final YangParserConfiguration config) {
- final CaseStatementSupport rfc6020case = CaseStatementSupport.rfc6020Instance(config);
- final CaseStatementSupport rfc7950case = CaseStatementSupport.rfc7950Instance(config);
-
return StatementSupportBundle.derivedFrom(stmtDefBundle)
.addSupport(new LeafStatementSupport(config))
.addSupport(new ConfigStatementSupport(config))
.addSupport(new DeviationStatementSupport(config))
.addVersionSpecificSupport(VERSION_1, new DeviateStatementRFC6020Support(config))
.addVersionSpecificSupport(VERSION_1_1, new DeviateStatementRFC7950Support(config))
- .addVersionSpecificSupport(VERSION_1, ChoiceStatementSupport.rfc6020Instance(config, rfc6020case))
- .addVersionSpecificSupport(VERSION_1_1, ChoiceStatementSupport.rfc7950Instance(config, rfc7950case))
- .addVersionSpecificSupport(VERSION_1, rfc6020case)
- .addVersionSpecificSupport(VERSION_1_1, rfc7950case)
+ .addVersionSpecificSupport(VERSION_1, ChoiceStatementSupport.rfc6020Instance(config))
+ .addVersionSpecificSupport(VERSION_1_1, ChoiceStatementSupport.rfc7950Instance(config))
+ .addVersionSpecificSupport(VERSION_1, CaseStatementSupport.rfc6020Instance(config))
+ .addVersionSpecificSupport(VERSION_1_1, CaseStatementSupport.rfc7950Instance(config))
.addSupport(new MustStatementSupport(xpathSupport, config))
.addSupport(new MandatoryStatementSupport(config))
.addSupport(new AnyxmlStatementSupport(config))