import org.opendaylight.yangtools.yang.parser.spi.source.ModuleNameToNamespace;
import org.opendaylight.yangtools.yang.parser.spi.source.ModuleNamespaceForBelongsTo;
import org.opendaylight.yangtools.yang.parser.spi.source.ModuleQNameToModuleName;
+import org.opendaylight.yangtools.yang.parser.spi.source.ModulesDeviatedByModules;
import org.opendaylight.yangtools.yang.parser.spi.source.PrefixToModule;
import org.opendaylight.yangtools.yang.parser.spi.source.QNameToStatementDefinition;
import org.opendaylight.yangtools.yang.parser.spi.source.StmtOrderingNamespace;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.OutputStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.PatternStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.RefineStatementRfc7950Support;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.RpcStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.SubmoduleStatementRfc7950Support;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.TypeStatementRfc7950Support;
public final class YangInferencePipeline {
public static final Set<YangVersion> SUPPORTED_VERSIONS = Sets.immutableEnumSet(VERSION_1, VERSION_1_1);
public static final StatementSupportBundle INIT_BUNDLE = StatementSupportBundle
.builder(SUPPORTED_VERSIONS).addSupport(global(ValidationBundlesNamespace.class))
.addSupport(global(SupportedFeaturesNamespace.class))
+ .addSupport(global(ModulesDeviatedByModules.class))
.build();
public static final StatementSupportBundle PRE_LINKAGE_BUNDLE = StatementSupportBundle
.addSupport(global(IdentityNamespace.class))
.addSupport(new DefaultStatementImpl.Definition())
.addSupport(new StatusStatementImpl.Definition())
- .addSupport(new TypeStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1, new TypeStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1_1, new TypeStatementRfc7950Support())
.addSupport(new UnitsStatementImpl.Definition())
.addSupport(new RequireInstanceStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1, new BitStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1_1, new PatternStatementRfc7950Support())
.addVersionSpecificSupport(VERSION_1_1, new ModifierStatementImpl.Definition())
.addSupport(new RangeStatementImpl.Definition())
+ .addSupport(new KeyStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1, new ContainerStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1_1, new ContainerStatementRfc7950Support())
.addVersionSpecificSupport(VERSION_1, new GroupingStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1_1, new ListStatementRfc7950Support())
.addSupport(new UniqueStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1_1, new ActionStatementImpl.Definition())
- .addSupport(new RpcStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1, new RpcStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1_1, new RpcStatementRfc7950Support())
.addVersionSpecificSupport(VERSION_1, new InputStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1_1, new InputStatementRfc7950Support())
.addVersionSpecificSupport(VERSION_1, new OutputStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1, new LeafListStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1_1, new LeafListStatementRfc7950Support())
.addSupport(new PresenceStatementImpl.Definition())
- .addSupport(new KeyStatementImpl.Definition())
.addSupport(new MaxElementsStatementImpl.Definition())
.addSupport(new MinElementsStatementImpl.Definition())
.addSupport(new OrderedByStatementImpl.Definition())