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.BaseBooleanStatementSupport;
+import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractBooleanStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
public final class ConfigStatementSupport
- extends BaseBooleanStatementSupport<ConfigStatement, ConfigEffectiveStatement> {
+ extends AbstractBooleanStatementSupport<ConfigStatement, ConfigEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.CONFIG).build();
private static final ConfigStatementSupport INSTANCE = new ConfigStatementSupport();
private ConfigStatementSupport() {
- super(YangStmtMapping.CONFIG, new EmptyConfigEffectiveStatement(new EmptyConfigStatement(Boolean.FALSE)),
- new EmptyConfigEffectiveStatement(new EmptyConfigStatement(Boolean.TRUE)), CopyPolicy.CONTEXT_INDEPENDENT);
+ super(YangStmtMapping.CONFIG,
+ new EmptyConfigEffectiveStatement(new EmptyConfigStatement(Boolean.FALSE)),
+ new EmptyConfigEffectiveStatement(new EmptyConfigStatement(Boolean.TRUE)),
+ // FIXME: This is not quite true. If we are instantiated in a context which ignores config, which should
+ // really fizzle. This needs some more analysis.
+ StatementPolicy.contextIndependent());
}
public static ConfigStatementSupport getInstance() {