import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.ActionStatementImpl;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.AnydataStatementImpl;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.AugmentStatementRfc7950Support;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.BitStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.CaseStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.ChoiceStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.ContainerStatementRfc7950Support;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.EnumStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.GroupingStatementRfc7950Support;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.IdentityStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.ImportStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.IncludeStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.InputStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.ModuleStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.NotificationStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.OutputStatementRfc7950Support;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.RefineStatementRfc7950Support;
import org.opendaylight.yangtools.yang.parser.stmt.rfc7950.SubmoduleStatementRfc7950Support;
public final class YangInferencePipeline {
.addSupport(global(ExtensionNamespace.class))
.addSupport(new TypedefStatementImpl.Definition())
.addSupport(treeScoped(TypeNamespace.class))
- .addSupport(new IdentityStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1, new IdentityStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1_1, new IdentityStatementRfc7950Support())
.addSupport(global(IdentityNamespace.class))
.addSupport(new DefaultStatementImpl.Definition())
.addSupport(new StatusStatementImpl.Definition())
.addSupport(new TypeStatementImpl.Definition())
.addSupport(new UnitsStatementImpl.Definition())
.addSupport(new RequireInstanceStatementImpl.Definition())
- .addSupport(new BitStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1, new BitStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1_1, new BitStatementRfc7950Support())
.addSupport(new PathStatementImpl.Definition())
- .addSupport(new EnumStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1, new EnumStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1_1, new EnumStatementRfc7950Support())
.addSupport(new LengthStatementImpl.Definition())
.addSupport(new PatternStatementImpl.Definition())
.addSupport(new RangeStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1, new AugmentStatementImpl.Definition())
.addVersionSpecificSupport(VERSION_1_1, new AugmentStatementRfc7950Support())
.addSupport(treeScoped(AugmentToChoiceNamespace.class))
- .addSupport(new RefineStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1, new RefineStatementImpl.Definition())
+ .addVersionSpecificSupport(VERSION_1_1, new RefineStatementRfc7950Support())
.addSupport(new FeatureStatementImpl.Definition())
.addSupport(new PositionStatementImpl.Definition())
.addSupport(new ValueStatementImpl.Definition())