package org.opendaylight.yangtools.rfc8040.parser;
import com.google.common.annotations.Beta;
+import org.opendaylight.yangtools.rfc8040.model.api.YangDataEffectiveStatement;
import org.opendaylight.yangtools.rfc8040.model.api.YangDataStatement;
import org.opendaylight.yangtools.rfc8040.model.api.YangDataStatements;
import org.opendaylight.yangtools.yang.model.api.YangStmtMapping;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
@Beta
-public final class YangDataStatementSupport extends AbstractStatementSupport<String, YangDataStatement,
- EffectiveStatement<String, YangDataStatement>> {
+public final class YangDataStatementSupport
+ extends AbstractStatementSupport<String, YangDataStatement, YangDataEffectiveStatement> {
/**
* Declared statement representation of 'yang-data' extension defined in
* <a href="https://tools.ietf.org/html/rfc8040#section-8">RFC 8040</a>.
}
@Override
- public EffectiveStatement<String, YangDataStatement> createEffective(final StmtContext<String,
- YangDataStatement, EffectiveStatement<String, YangDataStatement>> ctx) {
+ public YangDataEffectiveStatement createEffective(
+ final StmtContext<String, YangDataStatement, YangDataEffectiveStatement> ctx) {
// in case of yang-data node we need to perform substatement validation at the point when we have
// effective substatement contexts already available - if the node has only a uses statement declared in it,
// one top-level container node may very well be added to the yang-data as an effective statement
}
@Override
- public void onFullDefinitionDeclared(final Mutable<String, YangDataStatement,
- EffectiveStatement<String, YangDataStatement>> ctx) {
+ public void onFullDefinitionDeclared(final Mutable<String, YangDataStatement, YangDataEffectiveStatement> ctx) {
// as per https://tools.ietf.org/html/rfc8040#section-8,
// yang-data is ignored unless it appears as a top-level statement
if (ctx.coerceParentContext().getParentContext() != null) {