package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.config;
import org.opendaylight.yangtools.yang.model.api.YangStmtMapping;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.ConfigEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ConfigStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.ArgumentUtils;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
-public final class ConfigStatementSupport extends
- AbstractStatementSupport<Boolean, ConfigStatement, EffectiveStatement<Boolean, ConfigStatement>> {
+public final class ConfigStatementSupport
+ extends AbstractStatementSupport<Boolean, ConfigStatement, ConfigEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.CONFIG).build();
private static final ConfigStatementSupport INSTANCE = new ConfigStatementSupport();
}
@Override
- public EffectiveStatement<Boolean, ConfigStatement> createEffective(
- final StmtContext<Boolean, ConfigStatement, EffectiveStatement<Boolean, ConfigStatement>> ctx) {
- final EffectiveStatement<Boolean, ConfigStatement> ret = new ConfigEffectiveStatementImpl(ctx);
+ public ConfigEffectiveStatement createEffective(
+ final StmtContext<Boolean, ConfigStatement, ConfigEffectiveStatement> ctx) {
+ final ConfigEffectiveStatement ret = new ConfigEffectiveStatementImpl(ctx);
final ConfigStatement declared = ret.getDeclared();
if (declared instanceof EmptyConfigStatement && ret.effectiveSubstatements().isEmpty()) {
return ((EmptyConfigStatement)declared).toEffective();