import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.ActionDefinition;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ActionEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ActionStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveOperationDefinition;
private final boolean augmenting;
private final boolean addedByUses;
- ActionEffectiveStatementImpl(
- final StmtContext<QName, ActionStatement, EffectiveStatement<QName, ActionStatement>> ctx) {
+ ActionEffectiveStatementImpl(final StmtContext<QName, ActionStatement, ActionEffectiveStatement> ctx) {
super(ctx);
// initCopyType
import com.google.common.collect.ImmutableSet;
import org.opendaylight.yangtools.yang.common.QName;
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.model.api.stmt.ActionEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ActionStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.InputStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.OutputStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.output.OutputStatementRFC7950Support;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
+import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
import org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase;
public final class ActionStatementSupport
- extends AbstractQNameStatementSupport<ActionStatement, EffectiveStatement<QName, ActionStatement>> {
+ extends AbstractQNameStatementSupport<ActionStatement, ActionEffectiveStatement> {
private static final ImmutableSet<StatementDefinition> ILLEGAL_PARENTS = ImmutableSet.of(
YangStmtMapping.NOTIFICATION, YangStmtMapping.RPC, YangStmtMapping.ACTION);
}
@Override
- public void onStatementAdded(
- final StmtContext.Mutable<QName, ActionStatement, EffectiveStatement<QName, ActionStatement>> stmt) {
+ public void onStatementAdded(final Mutable<QName, ActionStatement, ActionEffectiveStatement> stmt) {
stmt.coerceParentContext().addToNs(ChildSchemaNodeNamespace.class, stmt.coerceStatementArgument(), stmt);
}
}
@Override
- public EffectiveStatement<QName, ActionStatement> createEffective(
- final StmtContext<QName, ActionStatement, EffectiveStatement<QName, ActionStatement>> ctx) {
+ public ActionEffectiveStatement createEffective(
+ final StmtContext<QName, ActionStatement, ActionEffectiveStatement> ctx) {
SourceException.throwIf(StmtContextUtils.hasAncestorOfType(ctx, ILLEGAL_PARENTS),
ctx.getStatementSourceReference(),
"Action %s is defined within a notification, rpc or another action", ctx.getStatementArgument());
}
@Override
- public void onFullDefinitionDeclared(final StmtContext.Mutable<QName, ActionStatement,
- EffectiveStatement<QName, ActionStatement>> stmt) {
+ public void onFullDefinitionDeclared(final Mutable<QName, ActionStatement, ActionEffectiveStatement> stmt) {
super.onFullDefinitionDeclared(stmt);
if (StmtContextUtils.findFirstDeclaredSubstatement(stmt, InputStatement.class) == null) {
import org.opendaylight.yangtools.yang.model.api.AnydataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
import org.opendaylight.yangtools.yang.model.api.DerivableSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.AnydataEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.AnydataStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.MandatoryEffectiveStatement;
private final ContainerSchemaNode schema;
private final boolean mandatory;
- AnydataEffectiveStatementImpl(
- final StmtContext<QName, AnydataStatement, EffectiveStatement<QName, AnydataStatement>> ctx) {
+ AnydataEffectiveStatementImpl(final StmtContext<QName, AnydataStatement, AnydataEffectiveStatement> ctx) {
super(ctx);
this.original = (AnydataSchemaNode) ctx.getOriginalCtx().map(StmtContext::buildEffective).orElse(null);
mandatory = findFirstEffectiveSubstatementArgument(MandatoryEffectiveStatement.class).orElse(Boolean.FALSE)
import org.opendaylight.yangtools.yang.common.QName;
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.AnydataEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.AnydataStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
-public final class AnydataStatementSupport extends
- AbstractQNameStatementSupport<AnydataStatement, EffectiveStatement<QName, AnydataStatement>> {
+public final class AnydataStatementSupport
+ extends AbstractQNameStatementSupport<AnydataStatement, AnydataEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.ANYDATA)
.addOptional(YangStmtMapping.CONFIG)
}
@Override
- public void onStatementAdded(final Mutable<QName, AnydataStatement,
- EffectiveStatement<QName, AnydataStatement>> stmt) {
+ public void onStatementAdded(final Mutable<QName, AnydataStatement, AnydataEffectiveStatement> stmt) {
stmt.coerceParentContext().addToNs(ChildSchemaNodeNamespace.class, stmt.coerceStatementArgument(), stmt);
}
}
@Override
- public EffectiveStatement<QName, AnydataStatement> createEffective(
- final StmtContext<QName, AnydataStatement, EffectiveStatement<QName, AnydataStatement>> ctx) {
+ public AnydataEffectiveStatement createEffective(
+ final StmtContext<QName, AnydataStatement, AnydataEffectiveStatement> ctx) {
return new AnydataEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.common.QName;
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.ArgumentEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ArgumentStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
public final class ArgumentStatementSupport
- extends AbstractQNameStatementSupport<ArgumentStatement, EffectiveStatement<QName, ArgumentStatement>> {
+ extends AbstractQNameStatementSupport<ArgumentStatement, ArgumentEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.ARGUMENT)
.addOptional(YangStmtMapping.YIN_ELEMENT)
}
@Override
- public ArgumentStatement createDeclared(
- final StmtContext<QName, ArgumentStatement, ?> ctx) {
+ public ArgumentStatement createDeclared(final StmtContext<QName, ArgumentStatement, ?> ctx) {
return new ArgumentStatementImpl(ctx);
}
@Override
- public EffectiveStatement<QName, ArgumentStatement> createEffective(
- final StmtContext<QName, ArgumentStatement, EffectiveStatement<QName, ArgumentStatement>> ctx) {
+ public ArgumentEffectiveStatement createEffective(
+ final StmtContext<QName, ArgumentStatement, ArgumentEffectiveStatement> ctx) {
return new ArgumentEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.common.YangVersion;
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.AugmentEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.AugmentStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.DataDefinitionStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-abstract class AbstractAugmentStatementSupport extends AbstractStatementSupport<SchemaNodeIdentifier, AugmentStatement,
- EffectiveStatement<SchemaNodeIdentifier, AugmentStatement>> {
+abstract class AbstractAugmentStatementSupport
+ extends AbstractStatementSupport<SchemaNodeIdentifier, AugmentStatement, AugmentEffectiveStatement> {
private static final Logger LOG = LoggerFactory.getLogger(AbstractAugmentStatementSupport.class);
private static final Pattern PATH_REL_PATTERN1 = Pattern.compile("\\.\\.?\\s*/(.+)");
private static final Pattern PATH_REL_PATTERN2 = Pattern.compile("//.*");
}
@Override
- public final EffectiveStatement<SchemaNodeIdentifier, AugmentStatement> createEffective(
- final StmtContext<SchemaNodeIdentifier, AugmentStatement,
- EffectiveStatement<SchemaNodeIdentifier, AugmentStatement>> ctx) {
+ public final AugmentEffectiveStatement createEffective(
+ final StmtContext<SchemaNodeIdentifier, AugmentStatement, AugmentEffectiveStatement> ctx) {
return new AugmentEffectiveStatementImpl(ctx);
}
@Override
- public final void onFullDefinitionDeclared(final Mutable<SchemaNodeIdentifier, AugmentStatement,
- EffectiveStatement<SchemaNodeIdentifier, AugmentStatement>> augmentNode) {
+ public final void onFullDefinitionDeclared(
+ final Mutable<SchemaNodeIdentifier, AugmentStatement, AugmentEffectiveStatement> augmentNode) {
if (!augmentNode.isSupportedByFeatures()) {
return;
}
final ModelActionBuilder augmentAction = augmentNode.newInferenceAction(
ModelProcessingPhase.EFFECTIVE_MODEL);
final Prerequisite<StmtContext<SchemaNodeIdentifier, AugmentStatement,
- EffectiveStatement<SchemaNodeIdentifier, AugmentStatement>>> sourceCtxPrereq =
- augmentAction.requiresCtx(augmentNode, ModelProcessingPhase.EFFECTIVE_MODEL);
+ AugmentEffectiveStatement>> sourceCtxPrereq =
+ augmentAction.requiresCtx(augmentNode, ModelProcessingPhase.EFFECTIVE_MODEL);
final Prerequisite<Mutable<?, ?, EffectiveStatement<?, ?>>> target =
augmentAction.mutatesEffectiveCtxPath(getSearchRoot(augmentNode),
ChildSchemaNodeNamespace.class, augmentNode.coerceStatementArgument().getPathFromRoot());
private final RevisionAwareXPath whenCondition;
private final AugmentationSchemaNode copyOf;
- AugmentEffectiveStatementImpl(final StmtContext<SchemaNodeIdentifier, AugmentStatement,
- EffectiveStatement<SchemaNodeIdentifier, AugmentStatement>> ctx) {
+ AugmentEffectiveStatementImpl(
+ final StmtContext<SchemaNodeIdentifier, AugmentStatement, AugmentEffectiveStatement> ctx) {
super(ctx);
targetPath = ctx.coerceStatementArgument().asSchemaPath();
rootModuleQName = StmtContextUtils.getRootModuleQName(ctx);
import java.util.List;
import org.opendaylight.yangtools.yang.common.QName;
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.BaseEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.BaseStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.IdentityStatement;
import org.opendaylight.yangtools.yang.parser.spi.IdentityNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
-public final class BaseStatementSupport
- extends AbstractQNameStatementSupport<BaseStatement, EffectiveStatement<QName, BaseStatement>> {
+public final class BaseStatementSupport extends AbstractQNameStatementSupport<BaseStatement, BaseEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR =
SubstatementValidator.builder(YangStmtMapping.BASE).build();
private static final BaseStatementSupport INSTANCE = new BaseStatementSupport();
}
@Override
- public EffectiveStatement<QName, BaseStatement> createEffective(
- final StmtContext<QName, BaseStatement, EffectiveStatement<QName, BaseStatement>> ctx) {
+ public BaseEffectiveStatement createEffective(final StmtContext<QName, BaseStatement, BaseEffectiveStatement> ctx) {
return new BaseEffectiveStatementImpl(ctx);
}
@Override
- public void onStatementDefinitionDeclared(
- final Mutable<QName, BaseStatement, EffectiveStatement<QName, BaseStatement>> baseStmtCtx) {
+ public void onStatementDefinitionDeclared(final Mutable<QName, BaseStatement, BaseEffectiveStatement> baseStmtCtx) {
final Mutable<?, ?, ?> baseParentCtx = baseStmtCtx.getParentContext();
if (StmtContextUtils.producesDeclared(baseParentCtx, IdentityStatement.class)) {
import org.opendaylight.yangtools.yang.common.QName;
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.BitEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.BitStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
-abstract class AbstractBitStatementSupport extends
- AbstractQNameStatementSupport<BitStatement, EffectiveStatement<QName, BitStatement>> {
+abstract class AbstractBitStatementSupport extends AbstractQNameStatementSupport<BitStatement, BitEffectiveStatement> {
AbstractBitStatementSupport() {
super(YangStmtMapping.BIT);
}
}
@Override
- public final EffectiveStatement<QName, BitStatement> createEffective(
- final StmtContext<QName, BitStatement, EffectiveStatement<QName, BitStatement>> ctx) {
+ public final BitEffectiveStatement createEffective(
+ final StmtContext<QName, BitStatement, BitEffectiveStatement> ctx) {
return new BitEffectiveStatementImpl(ctx);
}
}
\ No newline at end of file
import org.opendaylight.yangtools.yang.common.QName;
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.CaseEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.CaseStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
abstract class AbstractCaseStatementSupport
- extends AbstractQNameStatementSupport<CaseStatement, EffectiveStatement<QName, CaseStatement>> {
-
+ extends AbstractQNameStatementSupport<CaseStatement, CaseEffectiveStatement> {
AbstractCaseStatementSupport() {
super(YangStmtMapping.CASE);
}
}
@Override
- public final void onStatementAdded(
- final Mutable<QName, CaseStatement, EffectiveStatement<QName, CaseStatement>> stmt) {
+ public final void onStatementAdded(final Mutable<QName, CaseStatement, CaseEffectiveStatement> stmt) {
stmt.coerceParentContext().addToNs(ChildSchemaNodeNamespace.class, stmt.coerceStatementArgument(), stmt);
}
}
@Override
- public final EffectiveStatement<QName, CaseStatement> createEffective(
- final StmtContext<QName, CaseStatement, EffectiveStatement<QName, CaseStatement>> ctx) {
+ public final CaseEffectiveStatement createEffective(
+ final StmtContext<QName, CaseStatement, CaseEffectiveStatement> ctx) {
return new CaseEffectiveStatementImpl(ctx);
}
}
\ No newline at end of file
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.CaseSchemaNode;
import org.opendaylight.yangtools.yang.model.api.DerivableSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.CaseEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.CaseStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveSimpleDataNodeContainer;
private final CaseSchemaNode original;
private final boolean configuration;
- CaseEffectiveStatementImpl(final StmtContext<QName, CaseStatement, EffectiveStatement<QName, CaseStatement>> ctx) {
+ CaseEffectiveStatementImpl(final StmtContext<QName, CaseStatement, CaseEffectiveStatement> ctx) {
super(ctx);
this.original = (CaseSchemaNode) ctx.getOriginalCtx().map(StmtContext::buildEffective).orElse(null);
import java.util.Optional;
import org.opendaylight.yangtools.yang.common.QName;
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.model.api.stmt.ChoiceEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ChoiceStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.opendaylight.yangtools.yang.parser.rfc7950.reactor.YangValidationBundles;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
-abstract class AbstractChoiceStatementSupport extends
- AbstractQNameStatementSupport<ChoiceStatement, EffectiveStatement<QName, ChoiceStatement>>
+abstract class AbstractChoiceStatementSupport
+ extends AbstractQNameStatementSupport<ChoiceStatement, ChoiceEffectiveStatement>
implements ImplicitParentAwareStatementSupport {
AbstractChoiceStatementSupport() {
super(YangStmtMapping.CHOICE);
}
@Override
- public final void onStatementAdded(
- final Mutable<QName, ChoiceStatement, EffectiveStatement<QName, ChoiceStatement>> stmt) {
+ public final void onStatementAdded(final Mutable<QName, ChoiceStatement, ChoiceEffectiveStatement> stmt) {
stmt.coerceParentContext().addToNs(ChildSchemaNodeNamespace.class, stmt.coerceStatementArgument(), stmt);
}
}
@Override
- public final EffectiveStatement<QName, ChoiceStatement> createEffective(
- final StmtContext<QName, ChoiceStatement, EffectiveStatement<QName, ChoiceStatement>> ctx) {
+ public final ChoiceEffectiveStatement createEffective(
+ final StmtContext<QName, ChoiceStatement, ChoiceEffectiveStatement> ctx) {
return new ChoiceEffectiveStatementImpl(ctx);
}
private final ChoiceSchemaNode original;
private final boolean mandatory;
- ChoiceEffectiveStatementImpl(
- final StmtContext<QName, ChoiceStatement, EffectiveStatement<QName, ChoiceStatement>> ctx) {
+ ChoiceEffectiveStatementImpl(final StmtContext<QName, ChoiceStatement, ChoiceEffectiveStatement> ctx) {
super(ctx);
this.original = (ChoiceSchemaNode) ctx.getOriginalCtx().map(StmtContext::buildEffective).orElse(null);
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();
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.YangStmtMapping;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
import org.opendaylight.yangtools.yang.model.api.meta.StatementSource;
+import org.opendaylight.yangtools.yang.model.api.stmt.ConfigEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ConfigStatement;
abstract class EmptyConfigStatement implements ConfigStatement {
}
@Override
- EffectiveStatement<Boolean, ConfigStatement> toEffective() {
+ ConfigEffectiveStatement toEffective() {
return EmptyConfigEffectiveStatement.FALSE;
}
};
}
@Override
- EffectiveStatement<Boolean, ConfigStatement> toEffective() {
+ ConfigEffectiveStatement toEffective() {
return EmptyConfigEffectiveStatement.TRUE;
}
};
- abstract EffectiveStatement<Boolean, ConfigStatement> toEffective();
+ abstract ConfigEffectiveStatement toEffective();
@Override
public final Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
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.model.api.stmt.DeviateEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.DeviateStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-abstract class AbstractDeviateStatementSupport extends AbstractStatementSupport<DeviateKind, DeviateStatement,
- EffectiveStatement<DeviateKind, DeviateStatement>> {
+abstract class AbstractDeviateStatementSupport
+ extends AbstractStatementSupport<DeviateKind, DeviateStatement, DeviateEffectiveStatement> {
private static final Logger LOG = LoggerFactory.getLogger(AbstractDeviateStatementSupport.class);
private static final SubstatementValidator DEVIATE_NOT_SUPPORTED_SUBSTATEMENT_VALIDATOR =
}
@Override
- public final EffectiveStatement<DeviateKind, DeviateStatement> createEffective(
- final StmtContext<DeviateKind, DeviateStatement, EffectiveStatement<DeviateKind,
- DeviateStatement>> ctx) {
+ public final DeviateEffectiveStatement createEffective(
+ final StmtContext<DeviateKind, DeviateStatement, DeviateEffectiveStatement> ctx) {
return new DeviateEffectiveStatementImpl(ctx);
}
@Override
- public final void onFullDefinitionDeclared(final Mutable<DeviateKind, DeviateStatement,
- EffectiveStatement<DeviateKind, DeviateStatement>> deviateStmtCtx) {
+ public final void onFullDefinitionDeclared(
+ final Mutable<DeviateKind, DeviateStatement, DeviateEffectiveStatement> deviateStmtCtx) {
final DeviateKind deviateKind = deviateStmtCtx.getStatementArgument();
getSubstatementValidatorForDeviate(deviateKind).validate(deviateStmtCtx);
final ModelActionBuilder deviateAction = deviateStmtCtx.newInferenceAction(
ModelProcessingPhase.EFFECTIVE_MODEL);
- final Prerequisite<StmtContext<DeviateKind, DeviateStatement, EffectiveStatement<DeviateKind,
- DeviateStatement>>> sourceCtxPrerequisite =
+ final Prerequisite<StmtContext<DeviateKind, DeviateStatement,
+ DeviateEffectiveStatement>> sourceCtxPrerequisite =
deviateAction.requiresCtx(deviateStmtCtx, ModelProcessingPhase.EFFECTIVE_MODEL);
final Prerequisite<Mutable<?, ?, EffectiveStatement<?, ?>>> targetCtxPrerequisite =
}
}
- private static boolean isDeviationSupported(final Mutable<DeviateKind, DeviateStatement,
- EffectiveStatement<DeviateKind, DeviateStatement>> deviateStmtCtx,
+ private static boolean isDeviationSupported(
+ final Mutable<DeviateKind, DeviateStatement, DeviateEffectiveStatement> deviateStmtCtx,
final SchemaNodeIdentifier deviationTarget) {
final SetMultimap<QNameModule, QNameModule> modulesDeviatedByModules = deviateStmtCtx.getFromNamespace(
ModulesDeviatedByModules.class, SupportedModules.SUPPORTED_MODULES);
import org.opendaylight.yangtools.yang.common.QNameModule;
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.DeviationEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.DeviationStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
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.InferenceException;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
+import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
import org.opendaylight.yangtools.yang.parser.spi.source.ModuleCtxToModuleQName;
-public final class DeviationStatementSupport extends AbstractStatementSupport<SchemaNodeIdentifier, DeviationStatement,
- EffectiveStatement<SchemaNodeIdentifier, DeviationStatement>> {
+public final class DeviationStatementSupport
+ extends AbstractStatementSupport<SchemaNodeIdentifier, DeviationStatement, DeviationEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.DEVIATION)
.addOptional(YangStmtMapping.DESCRIPTION)
}
@Override
- public EffectiveStatement<SchemaNodeIdentifier, DeviationStatement> createEffective(
- final StmtContext<SchemaNodeIdentifier, DeviationStatement,
- EffectiveStatement<SchemaNodeIdentifier, DeviationStatement>> ctx) {
+ public DeviationEffectiveStatement createEffective(
+ final StmtContext<SchemaNodeIdentifier, DeviationStatement, DeviationEffectiveStatement> ctx) {
return new DeviationEffectiveStatementImpl(ctx);
}
@Override
- public void onFullDefinitionDeclared(final StmtContext.Mutable<SchemaNodeIdentifier, DeviationStatement,
- EffectiveStatement<SchemaNodeIdentifier, DeviationStatement>> ctx) {
+ public void onFullDefinitionDeclared(
+ final Mutable<SchemaNodeIdentifier, DeviationStatement, DeviationEffectiveStatement> ctx) {
final QNameModule currentModule = ctx.getFromNamespace(ModuleCtxToModuleQName.class,
ctx.getRoot());
final QNameModule targetModule = ctx.coerceStatementArgument().getLastComponent().getModule();
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.enum_;
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.EnumEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.EnumStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
-abstract class AbstractEnumStatementSupport extends
- AbstractStatementSupport<String, EnumStatement, EffectiveStatement<String, EnumStatement>> {
-
+abstract class AbstractEnumStatementSupport
+ extends AbstractStatementSupport<String, EnumStatement, EnumEffectiveStatement> {
AbstractEnumStatementSupport() {
super(YangStmtMapping.ENUM);
}
}
@Override
- public final EffectiveStatement<String, EnumStatement> createEffective(
- final StmtContext<String, EnumStatement, EffectiveStatement<String, EnumStatement>> ctx) {
+ public final EnumEffectiveStatement createEffective(
+ final StmtContext<String, EnumStatement, EnumEffectiveStatement> ctx) {
return new EnumEffectiveStatementImpl(ctx);
}
}
\ No newline at end of file
private final boolean yin;
private ExtensionEffectiveStatementImpl(
- final StmtContext<QName, ExtensionStatement, EffectiveStatement<QName, ExtensionStatement>> ctx) {
+ final StmtContext<QName, ExtensionStatement, ExtensionEffectiveStatement> ctx) {
super(ctx);
this.qname = ctx.coerceStatementArgument();
this.schemaPath = ctx.getSchemaPath().get();
* @param ctx Statement context
* @return A potentially under-initialized instance
*/
- static EffectiveStatement<QName, ExtensionStatement> create(
- final StmtContext<QName, ExtensionStatement, EffectiveStatement<QName, ExtensionStatement>> ctx) {
+ static ExtensionEffectiveStatement create(
+ final StmtContext<QName, ExtensionStatement, ExtensionEffectiveStatement> ctx) {
// Look at the thread-local leak in case we are invoked recursively
final ExtensionEffectiveStatementImpl existing = RecursiveObjectLeaker.lookup(ctx,
ExtensionEffectiveStatementImpl.class);
import org.opendaylight.yangtools.openconfig.model.api.OpenConfigStatements;
import org.opendaylight.yangtools.yang.common.QName;
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.ArgumentStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.ExtensionEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ExtensionStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.YinElementStatement;
import org.opendaylight.yangtools.yang.parser.spi.ExtensionNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
public final class ExtensionStatementSupport
- extends AbstractQNameStatementSupport<ExtensionStatement, EffectiveStatement<QName, ExtensionStatement>> {
+ extends AbstractQNameStatementSupport<ExtensionStatement, ExtensionEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.EXTENSION)
.addOptional(YangStmtMapping.ARGUMENT)
}
@Override
- public EffectiveStatement<QName, ExtensionStatement> createEffective(
- final StmtContext<QName, ExtensionStatement, EffectiveStatement<QName,ExtensionStatement>> ctx) {
+ public ExtensionEffectiveStatement createEffective(
+ final StmtContext<QName, ExtensionStatement, ExtensionEffectiveStatement> ctx) {
return ExtensionEffectiveStatementImpl.create(ctx);
}
@Override
public void onStatementDefinitionDeclared(
- final Mutable<QName, ExtensionStatement, EffectiveStatement<QName, ExtensionStatement>> stmt) {
+ final Mutable<QName, ExtensionStatement, ExtensionEffectiveStatement> stmt) {
super.onStatementDefinitionDeclared(stmt);
QName stmtName = stmt.coerceStatementArgument();
import org.opendaylight.yangtools.yang.common.QName;
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.FeatureEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.FeatureStatement;
import org.opendaylight.yangtools.yang.parser.spi.FeatureNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
public final class FeatureStatementSupport
- extends AbstractQNameStatementSupport<FeatureStatement, EffectiveStatement<QName, FeatureStatement>> {
+ extends AbstractQNameStatementSupport<FeatureStatement, FeatureEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.FEATURE)
.addOptional(YangStmtMapping.DESCRIPTION)
}
@Override
- public void onFullDefinitionDeclared(final Mutable<QName, FeatureStatement,
- EffectiveStatement<QName, FeatureStatement>> stmt) {
+ public void onFullDefinitionDeclared(final Mutable<QName, FeatureStatement, FeatureEffectiveStatement> stmt) {
super.onFullDefinitionDeclared(stmt);
stmt.addContext(FeatureNamespace.class, stmt.coerceStatementArgument(), stmt);
}
}
@Override
- public EffectiveStatement<QName, FeatureStatement> createEffective(
- final StmtContext<QName, FeatureStatement, EffectiveStatement<QName, FeatureStatement>> ctx) {
+ public FeatureEffectiveStatement createEffective(
+ final StmtContext<QName, FeatureStatement, FeatureEffectiveStatement> ctx) {
return new FeatureEffectiveStatementImpl(ctx);
}
import com.google.common.collect.Range;
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.FractionDigitsEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.FractionDigitsStatement;
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;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class FractionDigitsStatementSupport extends AbstractStatementSupport<Integer, FractionDigitsStatement,
- EffectiveStatement<Integer, FractionDigitsStatement>> {
+public final class FractionDigitsStatementSupport
+ extends AbstractStatementSupport<Integer, FractionDigitsStatement, FractionDigitsEffectiveStatement> {
private static final Range<Integer> FRAC_DIGITS_ALLOWED = Range.closed(1, 18);
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.FRACTION_DIGITS)
}
@Override
- public EffectiveStatement<Integer, FractionDigitsStatement> createEffective(
- final StmtContext<Integer, FractionDigitsStatement,
- EffectiveStatement<Integer, FractionDigitsStatement>> ctx) {
+ public FractionDigitsEffectiveStatement createEffective(
+ final StmtContext<Integer, FractionDigitsStatement, FractionDigitsEffectiveStatement> ctx) {
return new FractionDigitsEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.common.QName;
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.GroupingEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.GroupingStatement;
import org.opendaylight.yangtools.yang.parser.spi.GroupingNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
abstract class AbstractGroupingStatementSupport
- extends AbstractQNameStatementSupport<GroupingStatement, EffectiveStatement<QName, GroupingStatement>> {
+ extends AbstractQNameStatementSupport<GroupingStatement, GroupingEffectiveStatement> {
AbstractGroupingStatementSupport() {
super(YangStmtMapping.GROUPING);
}
@Override
- public final EffectiveStatement<QName, GroupingStatement> createEffective(
- final StmtContext<QName, GroupingStatement, EffectiveStatement<QName, GroupingStatement>> ctx) {
+ public final GroupingEffectiveStatement createEffective(
+ final StmtContext<QName, GroupingStatement, GroupingEffectiveStatement> ctx) {
return new GroupingEffectiveStatementImpl(ctx);
}
@Override
- public final void onFullDefinitionDeclared(final Mutable<QName, GroupingStatement,
- EffectiveStatement<QName, GroupingStatement>> stmt) {
+ public final void onFullDefinitionDeclared(
+ final Mutable<QName, GroupingStatement, GroupingEffectiveStatement> stmt) {
super.onFullDefinitionDeclared(stmt);
if (stmt != null) {
private final @NonNull ImmutableSet<ActionDefinition> actions;
private final @NonNull ImmutableSet<NotificationDefinition> notifications;
- GroupingEffectiveStatementImpl(
- final StmtContext<QName, GroupingStatement, EffectiveStatement<QName, GroupingStatement>> ctx) {
+ GroupingEffectiveStatementImpl(final StmtContext<QName, GroupingStatement, GroupingEffectiveStatement> ctx) {
super(ctx);
qname = ctx.coerceStatementArgument();
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.common.YangVersion;
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.IfFeatureEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.IfFeatureExpr;
import org.opendaylight.yangtools.yang.model.api.stmt.IfFeatureStatement;
import org.opendaylight.yangtools.yang.parser.spi.FeatureNamespace;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public final class IfFeatureStatementSupport extends AbstractStatementSupport<IfFeatureExpr, IfFeatureStatement,
- EffectiveStatement<IfFeatureExpr, IfFeatureStatement>> {
+public final class IfFeatureStatementSupport
+ extends AbstractStatementSupport<IfFeatureExpr, IfFeatureStatement, IfFeatureEffectiveStatement> {
private static final Logger LOG = LoggerFactory.getLogger(IfFeatureStatementSupport.class);
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.IF_FEATURE)
}
@Override
- public void onFullDefinitionDeclared(final Mutable<IfFeatureExpr, IfFeatureStatement,
- EffectiveStatement<IfFeatureExpr, IfFeatureStatement>> stmt) {
+ public void onFullDefinitionDeclared(
+ final Mutable<IfFeatureExpr, IfFeatureStatement, IfFeatureEffectiveStatement> stmt) {
super.onFullDefinitionDeclared(stmt);
final ModelActionBuilder verifyFeatures = stmt.newInferenceAction(ModelProcessingPhase.EFFECTIVE_MODEL);
}
@Override
- public EffectiveStatement<IfFeatureExpr, IfFeatureStatement> createEffective(
- final StmtContext<IfFeatureExpr, IfFeatureStatement,
- EffectiveStatement<IfFeatureExpr, IfFeatureStatement>> ctx) {
+ public IfFeatureEffectiveStatement createEffective(
+ final StmtContext<IfFeatureExpr, IfFeatureStatement, IfFeatureEffectiveStatement> ctx) {
return new IfFeatureEffectiveStatementImpl(ctx);
}
import java.net.URI;
import java.util.Collection;
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.ImportEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ImportStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.PrefixStatement;
import org.opendaylight.yangtools.yang.parser.spi.PreLinkageModuleNamespace;
import org.opendaylight.yangtools.yang.parser.spi.source.ModuleNameToNamespace;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-abstract class AbstractImportStatementSupport extends
- AbstractStatementSupport<String, ImportStatement, EffectiveStatement<String, ImportStatement>> {
+abstract class AbstractImportStatementSupport
+ extends AbstractStatementSupport<String, ImportStatement, ImportEffectiveStatement> {
AbstractImportStatementSupport() {
super(YangStmtMapping.IMPORT);
}
}
@Override
- public final EffectiveStatement<String, ImportStatement> createEffective(
- final StmtContext<String, ImportStatement, EffectiveStatement<String, ImportStatement>> ctx) {
+ public final ImportEffectiveStatement createEffective(
+ final StmtContext<String, ImportStatement, ImportEffectiveStatement> ctx) {
return new ImportEffectiveStatementImpl(ctx);
}
@Override
- public final void onPreLinkageDeclared(final Mutable<String, ImportStatement,
- EffectiveStatement<String, ImportStatement>> stmt) {
+ public final void onPreLinkageDeclared(final Mutable<String, ImportStatement, ImportEffectiveStatement> stmt) {
/*
* Add ModuleIdentifier of a module which is required by this module.
* Based on this information, required modules are searched from library
}
@Override
- public final void onLinkageDeclared(
- final Mutable<String, ImportStatement, EffectiveStatement<String, ImportStatement>> stmt) {
+ public final void onLinkageDeclared(final Mutable<String, ImportStatement, ImportEffectiveStatement> stmt) {
if (stmt.isEnabledSemanticVersioning()) {
SemanticVersionImport.onLinkageDeclared(stmt);
} else {
import java.util.Optional;
import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.common.Revision;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.ImportEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ImportStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.NamespaceStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.PrefixStatement;
// Hidden on purpose
}
- static void onLinkageDeclared(
- final Mutable<String, ImportStatement, EffectiveStatement<String, ImportStatement>> stmt) {
+ static void onLinkageDeclared(final Mutable<String, ImportStatement, ImportEffectiveStatement> stmt) {
final ModelActionBuilder importAction = stmt.newInferenceAction(SOURCE_LINKAGE);
final Prerequisite<StmtContext<?, ?, ?>> imported;
final String moduleName = stmt.coerceStatementArgument();
import java.util.Optional;
import org.opendaylight.yangtools.concepts.SemVer;
import org.opendaylight.yangtools.yang.common.QNameModule;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.ImportEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ImportStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.NamespaceStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.PrefixStatement;
// Hidden on purpose
}
- static void onLinkageDeclared(
- final Mutable<String, ImportStatement, EffectiveStatement<String, ImportStatement>> stmt) {
+ static void onLinkageDeclared(final Mutable<String, ImportStatement, ImportEffectiveStatement> stmt) {
final ModelActionBuilder importAction = stmt.newInferenceAction(SOURCE_LINKAGE);
final String moduleName = stmt.coerceStatementArgument();
final SemVer semanticVersion = stmt.getFromNamespace(SemanticVersionNamespace.class, stmt);
import java.util.Optional;
import org.opendaylight.yangtools.yang.common.Revision;
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.IncludeEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.IncludeStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RevisionDateStatement;
import org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier;
import org.opendaylight.yangtools.yang.parser.spi.source.IncludedModuleContext;
import org.opendaylight.yangtools.yang.parser.spi.source.IncludedSubmoduleNameToModuleCtx;
-abstract class AbstractIncludeStatementSupport extends
- AbstractStatementSupport<String, IncludeStatement, EffectiveStatement<String, IncludeStatement>> {
+abstract class AbstractIncludeStatementSupport
+ extends AbstractStatementSupport<String, IncludeStatement, IncludeEffectiveStatement> {
AbstractIncludeStatementSupport() {
super(YangStmtMapping.INCLUDE);
}
@Override
- public final EffectiveStatement<String, IncludeStatement> createEffective(
- final StmtContext<String, IncludeStatement, EffectiveStatement<String, IncludeStatement>> ctx) {
+ public final IncludeEffectiveStatement createEffective(
+ final StmtContext<String, IncludeStatement, IncludeEffectiveStatement> ctx) {
return new IncludeEffectiveStatementImpl(ctx);
}
@Override
- public final void onPreLinkageDeclared(
- final Mutable<String, IncludeStatement, EffectiveStatement<String, IncludeStatement>> stmt) {
+ public final void onPreLinkageDeclared(final Mutable<String, IncludeStatement, IncludeEffectiveStatement> stmt) {
final StmtContext<Revision, ?, ?> revision = findFirstDeclaredSubstatement(stmt,
RevisionDateStatement.class);
stmt.addRequiredSource(revision == null ? RevisionSourceIdentifier.create(stmt.getStatementArgument())
}
@Override
- public final void onLinkageDeclared(
- final Mutable<String, IncludeStatement, EffectiveStatement<String, IncludeStatement>> stmt) {
+ public final void onLinkageDeclared(final Mutable<String, IncludeStatement, IncludeEffectiveStatement> stmt) {
final String submoduleName = stmt.coerceStatementArgument();
final StmtContext<Revision, ?, ?> revision = findFirstDeclaredSubstatement(stmt,
RevisionDateStatement.class);
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.common.YangConstants;
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.InputEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.InputStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
abstract class AbstractInputStatementSupport
- extends AbstractQNameStatementSupport<InputStatement, EffectiveStatement<QName, InputStatement>> {
+ extends AbstractQNameStatementSupport<InputStatement, InputEffectiveStatement> {
AbstractInputStatementSupport() {
super(YangStmtMapping.INPUT);
}
}
@Override
- public final void onStatementAdded(final Mutable<QName, InputStatement,
- EffectiveStatement<QName, InputStatement>> stmt) {
+ public final void onStatementAdded(final Mutable<QName, InputStatement, InputEffectiveStatement> stmt) {
stmt.coerceParentContext().addToNs(ChildSchemaNodeNamespace.class, stmt.coerceStatementArgument(), stmt);
}
}
@Override
- public final EffectiveStatement<QName, InputStatement> createEffective(
- final StmtContext<QName, InputStatement, EffectiveStatement<QName, InputStatement>> ctx) {
+ public final InputEffectiveStatement createEffective(
+ final StmtContext<QName, InputStatement, InputEffectiveStatement> ctx) {
return new InputEffectiveStatementImpl(ctx);
}
}
\ No newline at end of file
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.input;
import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.InputEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.InputStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveOperationContainerSchemaNode;
final class InputEffectiveStatementImpl extends AbstractEffectiveOperationContainerSchemaNode<InputStatement>
implements InputEffectiveStatement {
- InputEffectiveStatementImpl(
- final StmtContext<QName, InputStatement, EffectiveStatement<QName, InputStatement>> ctx) {
+ InputEffectiveStatementImpl(final StmtContext<QName, InputStatement, InputEffectiveStatement> ctx) {
super(ctx);
}
}
import java.util.Iterator;
import java.util.List;
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.LengthEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.LengthStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.UnresolvedNumber;
import org.opendaylight.yangtools.yang.model.api.stmt.ValueRange;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class LengthStatementSupport extends AbstractStatementSupport<List<ValueRange>, LengthStatement,
- EffectiveStatement<List<ValueRange>, LengthStatement>> {
+public final class LengthStatementSupport
+ extends AbstractStatementSupport<List<ValueRange>, LengthStatement, LengthEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.LENGTH)
.addOptional(YangStmtMapping.DESCRIPTION)
}
@Override
- public EffectiveStatement<List<ValueRange>, LengthStatement> createEffective(
- final StmtContext<List<ValueRange>, LengthStatement, EffectiveStatement<List<ValueRange>,
- LengthStatement>> ctx) {
+ public LengthEffectiveStatement createEffective(
+ final StmtContext<List<ValueRange>, LengthStatement, LengthEffectiveStatement> ctx) {
return new LengthEffectiveStatementImpl(ctx);
}
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.max_elements;
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.MaxElementsEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.MaxElementsStatement;
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 MaxElementsStatementSupport extends
- AbstractStatementSupport<String, MaxElementsStatement, EffectiveStatement<String, MaxElementsStatement>> {
+public final class MaxElementsStatementSupport
+ extends AbstractStatementSupport<String, MaxElementsStatement, MaxElementsEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.MAX_ELEMENTS)
.build();
}
@Override
- public EffectiveStatement<String, MaxElementsStatement> createEffective(
- final StmtContext<String, MaxElementsStatement, EffectiveStatement<String, MaxElementsStatement>> ctx) {
+ public MaxElementsEffectiveStatement createEffective(
+ final StmtContext<String, MaxElementsStatement, MaxElementsEffectiveStatement> ctx) {
return new MaxElementsEffectiveStatementImpl(ctx);
}
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.min_elements;
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.MinElementsEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.MinElementsStatement;
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 MinElementsStatementSupport extends
- AbstractStatementSupport<Integer, MinElementsStatement, EffectiveStatement<Integer, MinElementsStatement>> {
+public final class MinElementsStatementSupport
+ extends AbstractStatementSupport<Integer, MinElementsStatement, MinElementsEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.MIN_ELEMENTS)
.build();
}
@Override
- public MinElementsStatement createDeclared(
- final StmtContext<Integer, MinElementsStatement, ?> ctx) {
+ public MinElementsStatement createDeclared(final StmtContext<Integer, MinElementsStatement, ?> ctx) {
return new MinElementsStatementImpl(ctx);
}
@Override
- public EffectiveStatement<Integer, MinElementsStatement> createEffective(
- final StmtContext<Integer, MinElementsStatement,
- EffectiveStatement<Integer, MinElementsStatement>> ctx) {
+ public MinElementsEffectiveStatement createEffective(
+ final StmtContext<Integer, MinElementsStatement, MinElementsEffectiveStatement> ctx) {
return new MinElementsEffectiveStatementImpl(ctx);
}
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.modifier;
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.ModifierEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ModifierStatement;
import org.opendaylight.yangtools.yang.model.api.type.ModifierKind;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class ModifierStatementSupport extends AbstractStatementSupport<ModifierKind, ModifierStatement,
- EffectiveStatement<ModifierKind, ModifierStatement>> {
+public final class ModifierStatementSupport
+ extends AbstractStatementSupport<ModifierKind, ModifierStatement, ModifierEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.MODIFIER).build();
private static final ModifierStatementSupport INSTANCE = new ModifierStatementSupport();
}
@Override
- public EffectiveStatement<ModifierKind, ModifierStatement> createEffective(
- final StmtContext<ModifierKind, ModifierStatement,
- EffectiveStatement<ModifierKind, ModifierStatement>> ctx) {
+ public ModifierEffectiveStatement createEffective(
+ final StmtContext<ModifierKind, ModifierStatement, ModifierEffectiveStatement> ctx) {
return new ModifierEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.model.api.RevisionAwareXPath;
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.MustEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.MustStatement;
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 MustStatementSupport extends AbstractStatementSupport<RevisionAwareXPath, MustStatement,
- EffectiveStatement<RevisionAwareXPath, MustStatement>> {
+public final class MustStatementSupport
+ extends AbstractStatementSupport<RevisionAwareXPath, MustStatement, MustEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.MUST)
.addOptional(YangStmtMapping.DESCRIPTION)
}
@Override
- public EffectiveStatement<RevisionAwareXPath, MustStatement> createEffective(
- final StmtContext<RevisionAwareXPath, MustStatement,
- EffectiveStatement<RevisionAwareXPath, MustStatement>> ctx) {
+ public MustEffectiveStatement createEffective(
+ final StmtContext<RevisionAwareXPath, MustStatement, MustEffectiveStatement> ctx) {
return new MustEffectiveStatementImpl(ctx);
}
import java.net.URI;
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.NamespaceEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.NamespaceStatement;
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 NamespaceStatementSupport extends AbstractStatementSupport<URI, NamespaceStatement,
- EffectiveStatement<URI, NamespaceStatement>> {
+public final class NamespaceStatementSupport
+ extends AbstractStatementSupport<URI, NamespaceStatement, NamespaceEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.NAMESPACE)
.build();
}
@Override
- public EffectiveStatement<URI,NamespaceStatement> createEffective(
- final StmtContext<URI, NamespaceStatement, EffectiveStatement<URI, NamespaceStatement>> ctx) {
+ public NamespaceEffectiveStatement createEffective(
+ final StmtContext<URI, NamespaceStatement, NamespaceEffectiveStatement> ctx) {
return new NamespaceEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.common.QName;
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.NotificationEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.NotificationStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
abstract class AbstractNotificationStatementSupport
- extends AbstractQNameStatementSupport<NotificationStatement, EffectiveStatement<QName, NotificationStatement>> {
+ extends AbstractQNameStatementSupport<NotificationStatement, NotificationEffectiveStatement> {
AbstractNotificationStatementSupport() {
super(YangStmtMapping.NOTIFICATION);
}
@Override
public final void onStatementAdded(
- final Mutable<QName, NotificationStatement, EffectiveStatement<QName, NotificationStatement>> stmt) {
+ final Mutable<QName, NotificationStatement, NotificationEffectiveStatement> stmt) {
stmt.coerceParentContext().addToNs(ChildSchemaNodeNamespace.class, stmt.coerceStatementArgument(), stmt);
}
private volatile ImmutableSet<MustDefinition> mustConstraints;
NotificationEffectiveStatementImpl(
- final StmtContext<QName, NotificationStatement, EffectiveStatement<QName, NotificationStatement>> ctx) {
+ final StmtContext<QName, NotificationStatement, NotificationEffectiveStatement> ctx) {
super(ctx);
this.qname = ctx.coerceStatementArgument();
this.path = ctx.getSchemaPath().get();
import org.opendaylight.yangtools.yang.common.QName;
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.NotificationEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.NotificationStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
}
@Override
- public EffectiveStatement<QName, NotificationStatement> createEffective(
- final StmtContext<QName, NotificationStatement, EffectiveStatement<QName, NotificationStatement>> ctx) {
+ public NotificationEffectiveStatement createEffective(
+ final StmtContext<QName, NotificationStatement, NotificationEffectiveStatement> ctx) {
return new NotificationEffectiveStatementImpl(ctx);
}
import com.google.common.collect.ImmutableSet;
import org.opendaylight.yangtools.yang.common.QName;
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.model.api.stmt.NotificationEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.NotificationStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
}
@Override
- public EffectiveStatement<QName, NotificationStatement> createEffective(
- final StmtContext<QName, NotificationStatement, EffectiveStatement<QName, NotificationStatement>> ctx) {
+ public NotificationEffectiveStatement createEffective(
+ final StmtContext<QName, NotificationStatement, NotificationEffectiveStatement> ctx) {
SourceException.throwIf(StmtContextUtils.hasAncestorOfType(ctx, ILLEGAL_PARENTS),
ctx.getStatementSourceReference(),
"Notification %s is defined within an rpc, action, or another notification",
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.common.YangConstants;
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.OutputEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.OutputStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
-abstract class AbstractOutputStatementSupport extends
- AbstractQNameStatementSupport<OutputStatement, EffectiveStatement<QName, OutputStatement>> {
+abstract class AbstractOutputStatementSupport
+ extends AbstractQNameStatementSupport<OutputStatement, OutputEffectiveStatement> {
AbstractOutputStatementSupport() {
super(YangStmtMapping.OUTPUT);
}
}
@Override
- public final void onStatementAdded(final Mutable<QName, OutputStatement,
- EffectiveStatement<QName, OutputStatement>> stmt) {
+ public final void onStatementAdded(final Mutable<QName, OutputStatement, OutputEffectiveStatement> stmt) {
stmt.coerceParentContext().addToNs(ChildSchemaNodeNamespace.class, stmt.coerceStatementArgument(), stmt);
}
}
@Override
- public final EffectiveStatement<QName, OutputStatement> createEffective(
- final StmtContext<QName, OutputStatement, EffectiveStatement<QName, OutputStatement>> ctx) {
+ public final OutputEffectiveStatement createEffective(
+ final StmtContext<QName, OutputStatement, OutputEffectiveStatement> ctx) {
return new OutputEffectiveStatementImpl(ctx);
}
}
\ No newline at end of file
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.output;
import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.OutputEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.OutputStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveOperationContainerSchemaNode;
final class OutputEffectiveStatementImpl extends AbstractEffectiveOperationContainerSchemaNode<OutputStatement>
implements OutputEffectiveStatement {
- OutputEffectiveStatementImpl(
- final StmtContext<QName, OutputStatement, EffectiveStatement<QName, OutputStatement>> ctx) {
+ OutputEffectiveStatementImpl(final StmtContext<QName, OutputStatement, OutputEffectiveStatement> ctx) {
super(ctx);
}
}
import org.opendaylight.yangtools.yang.model.api.PathExpression;
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.PathEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.PathStatement;
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 PathStatementSupport extends AbstractStatementSupport<PathExpression, PathStatement,
- EffectiveStatement<PathExpression, PathStatement>> {
+public final class PathStatementSupport
+ extends AbstractStatementSupport<PathExpression, PathStatement, PathEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.PATH).build();
private static final PathStatementSupport LENIENT_INSTANCE = new PathStatementSupport(
}
@Override
- public EffectiveStatement<PathExpression, PathStatement> createEffective(
- final StmtContext<PathExpression, PathStatement, EffectiveStatement<PathExpression, PathStatement>> ctx) {
+ public PathEffectiveStatement createEffective(
+ final StmtContext<PathExpression, PathStatement, PathEffectiveStatement> ctx) {
return new PathEffectiveStatementImpl(ctx);
}
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
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.PatternEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.PatternStatement;
import org.opendaylight.yangtools.yang.model.api.type.PatternConstraint;
import org.opendaylight.yangtools.yang.model.util.RegexUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-abstract class AbstractPatternStatementSupport extends AbstractStatementSupport<PatternConstraint, PatternStatement,
- EffectiveStatement<PatternConstraint, PatternStatement>> {
+abstract class AbstractPatternStatementSupport
+ extends AbstractStatementSupport<PatternConstraint, PatternStatement, PatternEffectiveStatement> {
private static final Logger LOG = LoggerFactory.getLogger(AbstractPatternStatementSupport.class);
AbstractPatternStatementSupport() {
}
@Override
- public final EffectiveStatement<PatternConstraint, PatternStatement> createEffective(
- final StmtContext<PatternConstraint, PatternStatement,
- EffectiveStatement<PatternConstraint, PatternStatement>> ctx) {
+ public final PatternEffectiveStatement createEffective(
+ final StmtContext<PatternConstraint, PatternStatement, PatternEffectiveStatement> ctx) {
return new PatternEffectiveStatementImpl(ctx);
}
}
\ No newline at end of file
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.position;
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.PositionEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.PositionStatement;
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.source.SourceException;
public final class PositionStatementSupport
- extends AbstractStatementSupport<Long, PositionStatement, EffectiveStatement<Long, PositionStatement>> {
+ extends AbstractStatementSupport<Long, PositionStatement, PositionEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.POSITION).build();
private static final PositionStatementSupport INSTANCE = new PositionStatementSupport();
}
@Override
- public EffectiveStatement<Long, PositionStatement> createEffective(
- final StmtContext<Long, PositionStatement, EffectiveStatement<Long, PositionStatement>> ctx) {
+ public PositionEffectiveStatement createEffective(
+ final StmtContext<Long, PositionStatement, PositionEffectiveStatement> ctx) {
return new PositionEffectiveStatementImpl(ctx);
}
import java.util.Iterator;
import java.util.List;
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.RangeEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RangeStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.UnresolvedNumber;
import org.opendaylight.yangtools.yang.model.api.stmt.ValueRange;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class RangeStatementSupport extends AbstractStatementSupport<List<ValueRange>, RangeStatement,
- EffectiveStatement<List<ValueRange>, RangeStatement>> {
+public final class RangeStatementSupport
+ extends AbstractStatementSupport<List<ValueRange>, RangeStatement, RangeEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.RANGE)
.addOptional(YangStmtMapping.DESCRIPTION)
}
@Override
- public EffectiveStatement<List<ValueRange>, RangeStatement> createEffective(
- final StmtContext<List<ValueRange>, RangeStatement, EffectiveStatement<List<ValueRange>,
- RangeStatement>> ctx) {
+ public RangeEffectiveStatement createEffective(
+ final StmtContext<List<ValueRange>, RangeStatement, RangeEffectiveStatement> ctx) {
return new RangeEffectiveStatementImpl(ctx);
}
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.refine;
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.RefineEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RefineStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
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;
-abstract class AbstractRefineStatementSupport extends AbstractStatementSupport<SchemaNodeIdentifier, RefineStatement,
- EffectiveStatement<SchemaNodeIdentifier, RefineStatement>> {
+abstract class AbstractRefineStatementSupport
+ extends AbstractStatementSupport<SchemaNodeIdentifier, RefineStatement, RefineEffectiveStatement> {
AbstractRefineStatementSupport() {
super(YangStmtMapping.REFINE);
}
@Override
- public final EffectiveStatement<SchemaNodeIdentifier, RefineStatement> createEffective(
- final StmtContext<SchemaNodeIdentifier, RefineStatement,
- EffectiveStatement<SchemaNodeIdentifier, RefineStatement>> ctx) {
+ public final RefineEffectiveStatement createEffective(
+ final StmtContext<SchemaNodeIdentifier, RefineStatement, RefineEffectiveStatement> ctx) {
return new RefineEffectiveStatementImpl(ctx);
}
}
\ No newline at end of file
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.require_instance;
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.RequireInstanceEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RequireInstanceStatement;
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 RequireInstanceStatementSupport extends AbstractStatementSupport<Boolean, RequireInstanceStatement,
- EffectiveStatement<Boolean, RequireInstanceStatement>> {
+public final class RequireInstanceStatementSupport
+ extends AbstractStatementSupport<Boolean, RequireInstanceStatement, RequireInstanceEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.REQUIRE_INSTANCE).build();
private static final RequireInstanceStatementSupport INSTANCE = new RequireInstanceStatementSupport();
}
@Override
- public EffectiveStatement<Boolean, RequireInstanceStatement> createEffective(
- final StmtContext<Boolean, RequireInstanceStatement,
- EffectiveStatement<Boolean, RequireInstanceStatement>> ctx) {
+ public RequireInstanceEffectiveStatement createEffective(
+ final StmtContext<Boolean, RequireInstanceStatement, RequireInstanceEffectiveStatement> ctx) {
return new RequireInstanceEffectiveStatementImpl(ctx);
}
import java.time.format.DateTimeParseException;
import org.opendaylight.yangtools.yang.common.Revision;
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.RevisionEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RevisionStatement;
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;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class RevisionStatementSupport extends
- AbstractStatementSupport<Revision, RevisionStatement, EffectiveStatement<Revision, RevisionStatement>> {
+public final class RevisionStatementSupport
+ extends AbstractStatementSupport<Revision, RevisionStatement, RevisionEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.REVISION)
.addOptional(YangStmtMapping.DESCRIPTION)
}
@Override
- public EffectiveStatement<Revision, RevisionStatement> createEffective(
- final StmtContext<Revision, RevisionStatement, EffectiveStatement<Revision, RevisionStatement>> ctx) {
+ public RevisionEffectiveStatement createEffective(
+ final StmtContext<Revision, RevisionStatement, RevisionEffectiveStatement> ctx) {
return new RevisionEffectiveStatementImpl(ctx);
}
import java.time.format.DateTimeParseException;
import org.opendaylight.yangtools.yang.common.Revision;
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.RevisionDateEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RevisionDateStatement;
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;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class RevisionDateStatementSupport extends AbstractStatementSupport<Revision, RevisionDateStatement,
- EffectiveStatement<Revision, RevisionDateStatement>> {
+public final class RevisionDateStatementSupport
+ extends AbstractStatementSupport<Revision, RevisionDateStatement, RevisionDateEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR =
SubstatementValidator.builder(YangStmtMapping.REVISION_DATE).build();
private static final RevisionDateStatementSupport INSTANCE = new RevisionDateStatementSupport();
}
@Override
- public EffectiveStatement<Revision, RevisionDateStatement> createEffective(final StmtContext<Revision,
- RevisionDateStatement, EffectiveStatement<Revision, RevisionDateStatement>> ctx) {
+ public RevisionDateEffectiveStatement createEffective(
+ final StmtContext<Revision, RevisionDateStatement, RevisionDateEffectiveStatement> ctx) {
return new RevisionDateEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.common.QName;
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.InputStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.OutputStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.RpcEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RpcStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase;
abstract class AbstractRpcStatementSupport
- extends AbstractQNameStatementSupport<RpcStatement, EffectiveStatement<QName, RpcStatement>> {
+ extends AbstractQNameStatementSupport<RpcStatement, RpcEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.RPC)
.addOptional(YangStmtMapping.DESCRIPTION)
}
@Override
- public final void onStatementAdded(
- final Mutable<QName, RpcStatement, EffectiveStatement<QName, RpcStatement>> stmt) {
+ public final void onStatementAdded(final Mutable<QName, RpcStatement, RpcEffectiveStatement> stmt) {
stmt.coerceParentContext().addToNs(ChildSchemaNodeNamespace.class, stmt.coerceStatementArgument(), stmt);
}
}
@Override
- public final EffectiveStatement<QName, RpcStatement> createEffective(
- final StmtContext<QName, RpcStatement, EffectiveStatement<QName, RpcStatement>> ctx) {
+ public final RpcEffectiveStatement createEffective(
+ final StmtContext<QName, RpcStatement, RpcEffectiveStatement> ctx) {
return new RpcEffectiveStatementImpl(ctx);
}
@Override
- public final void onFullDefinitionDeclared(
- final Mutable<QName, RpcStatement, EffectiveStatement<QName, RpcStatement>> stmt) {
+ public final void onFullDefinitionDeclared(final Mutable<QName, RpcStatement, RpcEffectiveStatement> stmt) {
super.onFullDefinitionDeclared(stmt);
if (StmtContextUtils.findFirstDeclaredSubstatement(stmt, InputStatement.class) == null) {
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.RpcDefinition;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RpcEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.RpcStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveOperationDefinition;
final class RpcEffectiveStatementImpl extends AbstractEffectiveOperationDefinition<RpcStatement>
implements RpcDefinition, RpcEffectiveStatement {
- RpcEffectiveStatementImpl(final StmtContext<QName, RpcStatement,
- EffectiveStatement<QName, RpcStatement>> ctx) {
+ RpcEffectiveStatementImpl(final StmtContext<QName, RpcStatement, RpcEffectiveStatement> ctx) {
super(ctx);
}
}
import org.opendaylight.yangtools.yang.model.api.Status;
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.StatusEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.StatusStatement;
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.source.SourceException;
public final class StatusStatementSupport
- extends AbstractStatementSupport<Status, StatusStatement, EffectiveStatement<Status, StatusStatement>> {
+ extends AbstractStatementSupport<Status, StatusStatement, StatusEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.STATUS)
.build();
}
@Override
- public StatusStatement createDeclared(
- final StmtContext<Status, StatusStatement, ?> ctx) {
+ public StatusStatement createDeclared(final StmtContext<Status, StatusStatement, ?> ctx) {
return new StatusStatementImpl(ctx);
}
@Override
- public EffectiveStatement<Status, StatusStatement> createEffective(
- final StmtContext<Status, StatusStatement, EffectiveStatement<Status, StatusStatement>> ctx) {
+ public StatusEffectiveStatement createEffective(
+ final StmtContext<Status, StatusStatement, StatusEffectiveStatement> ctx) {
return new StatusEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.common.QName;
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.TypedefEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.TypedefStatement;
import org.opendaylight.yangtools.yang.parser.spi.TypeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
public final class TypedefStatementSupport extends
- AbstractQNameStatementSupport<TypedefStatement, EffectiveStatement<QName, TypedefStatement>> {
+ AbstractQNameStatementSupport<TypedefStatement, TypedefEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.TYPEDEF)
.addOptional(YangStmtMapping.DEFAULT)
}
@Override
- public EffectiveStatement<QName, TypedefStatement> createEffective(
- final StmtContext<QName, TypedefStatement, EffectiveStatement<QName, TypedefStatement>> ctx) {
+ public TypedefEffectiveStatement createEffective(
+ final StmtContext<QName, TypedefStatement, TypedefEffectiveStatement> ctx) {
return new TypedefEffectiveStatementImpl(ctx);
}
@Override
- public void onFullDefinitionDeclared(final Mutable<QName, TypedefStatement,
- EffectiveStatement<QName, TypedefStatement>> stmt) {
+ public void onFullDefinitionDeclared(final Mutable<QName, TypedefStatement, TypedefEffectiveStatement> stmt) {
super.onFullDefinitionDeclared(stmt);
if (stmt != null) {
import java.util.Set;
import java.util.regex.Pattern;
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.SchemaNodeIdentifier;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Relative;
+import org.opendaylight.yangtools.yang.model.api.stmt.UniqueEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.UniqueStatement;
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.SubstatementValidator;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class UniqueStatementSupport extends AbstractStatementSupport<Set<Relative>, UniqueStatement,
- EffectiveStatement<Set<Relative>, UniqueStatement>> {
+public final class UniqueStatementSupport
+ extends AbstractStatementSupport<Set<Relative>, UniqueStatement, UniqueEffectiveStatement> {
/**
* Support 'sep' ABNF rule in RFC7950 section 14. CRLF pattern is used to squash line-break from CRLF to LF form
* and then we use SEP_SPLITTER, which can operate on single characters.
}
@Override
- public EffectiveStatement<Set<Relative>, UniqueStatement> createEffective(
- final StmtContext<Set<Relative>, UniqueStatement, EffectiveStatement<Set<Relative>, UniqueStatement>> ctx) {
+ public UniqueEffectiveStatement createEffective(
+ final StmtContext<Set<Relative>, UniqueStatement, UniqueEffectiveStatement> ctx) {
return new UniqueEffectiveStatementImpl(ctx);
}
private final @NonNull ImmutableSet<AugmentationSchemaNode> augmentations;
private final @Nullable RevisionAwareXPath whenCondition;
- UsesEffectiveStatementImpl(final StmtContext<QName, UsesStatement, EffectiveStatement<QName, UsesStatement>> ctx) {
+ UsesEffectiveStatementImpl(final StmtContext<QName, UsesStatement, UsesEffectiveStatement> ctx) {
super(ctx);
// initGroupingPath
import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.common.YangVersion;
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.model.api.stmt.RefineStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
+import org.opendaylight.yangtools.yang.model.api.stmt.UsesEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.UsesStatement;
import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ChildSchemaNodeNamespace;
import org.opendaylight.yangtools.yang.parser.rfc7950.reactor.YangValidationBundles;
*/
static void copyFromSourceToTarget(final Mutable<?, ?, ?> sourceGrpStmtCtx,
final StatementContextBase<?, ?, ?> targetCtx,
- final Mutable<QName, UsesStatement, EffectiveStatement<QName, UsesStatement>> usesNode) {
+ final Mutable<QName, UsesStatement, UsesEffectiveStatement> usesNode) {
final Collection<? extends Mutable<?, ?, ?>> declared = sourceGrpStmtCtx.mutableDeclaredSubstatements();
final Collection<? extends Mutable<?, ?, ?>> effective = sourceGrpStmtCtx.mutableEffectiveSubstatements();
final Collection<Mutable<?, ?, ?>> buffer = new ArrayList<>(declared.size() + effective.size());
return true;
}
- public static void resolveUsesNode(
- final Mutable<QName, UsesStatement, EffectiveStatement<QName, UsesStatement>> usesNode,
+ public static void resolveUsesNode(final Mutable<QName, UsesStatement, UsesEffectiveStatement> usesNode,
final StmtContext<?, ?, ?> targetNodeStmtCtx) {
for (final Mutable<?, ?, ?> subStmtCtx : usesNode.mutableDeclaredSubstatements()) {
if (StmtContextUtils.producesDeclared(subStmtCtx, RefineStatement.class)
import java.util.Collection;
import org.opendaylight.yangtools.yang.common.QName;
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.UsesEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.UsesStatement;
import org.opendaylight.yangtools.yang.parser.spi.GroupingNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
import org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase;
-public final class UsesStatementSupport extends
- AbstractQNameStatementSupport<UsesStatement, EffectiveStatement<QName, UsesStatement>> {
+public final class UsesStatementSupport
+ extends AbstractQNameStatementSupport<UsesStatement, UsesEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.USES)
.addAny(YangStmtMapping.AUGMENT)
}
@Override
- public void onFullDefinitionDeclared(
- final Mutable<QName, UsesStatement, EffectiveStatement<QName, UsesStatement>> usesNode) {
+ public void onFullDefinitionDeclared(final Mutable<QName, UsesStatement, UsesEffectiveStatement> usesNode) {
if (!usesNode.isSupportedByFeatures()) {
return;
}
}
@Override
- public EffectiveStatement<QName, UsesStatement> createEffective(
- final StmtContext<QName, UsesStatement, EffectiveStatement<QName, UsesStatement>> ctx) {
+ public UsesEffectiveStatement createEffective(final StmtContext<QName, UsesStatement, UsesEffectiveStatement> ctx) {
return new UsesEffectiveStatementImpl(ctx);
}
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.value;
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.ValueEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.ValueStatement;
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;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class ValueStatementSupport extends
- AbstractStatementSupport<Integer, ValueStatement, EffectiveStatement<Integer, ValueStatement>> {
+public final class ValueStatementSupport
+ extends AbstractStatementSupport<Integer, ValueStatement, ValueEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.VALUE).build();
private static final ValueStatementSupport INSTANCE = new ValueStatementSupport();
}
@Override
- public EffectiveStatement<Integer, ValueStatement> createEffective(
- final StmtContext<Integer, ValueStatement, EffectiveStatement<Integer, ValueStatement>> ctx) {
+ public ValueEffectiveStatement createEffective(
+ final StmtContext<Integer, ValueStatement, ValueEffectiveStatement> ctx) {
return new ValueEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.model.api.RevisionAwareXPath;
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.WhenEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.WhenStatement;
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 WhenStatementSupport extends AbstractStatementSupport<RevisionAwareXPath, WhenStatement,
- EffectiveStatement<RevisionAwareXPath, WhenStatement>> {
+public final class WhenStatementSupport
+ extends AbstractStatementSupport<RevisionAwareXPath, WhenStatement, WhenEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.WHEN)
.addOptional(YangStmtMapping.DESCRIPTION)
}
@Override
- public EffectiveStatement<RevisionAwareXPath, WhenStatement> createEffective(
- final StmtContext<RevisionAwareXPath, WhenStatement,
- EffectiveStatement<RevisionAwareXPath, WhenStatement>> ctx) {
+ public WhenEffectiveStatement createEffective(
+ final StmtContext<RevisionAwareXPath, WhenStatement, WhenEffectiveStatement> ctx) {
return new WhenEffectiveStatementImpl(ctx);
}
import org.opendaylight.yangtools.yang.common.YangVersion;
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.YangVersionEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.YangVersionStatement;
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;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-public final class YangVersionStatementSupport extends AbstractStatementSupport<YangVersion, YangVersionStatement,
- EffectiveStatement<YangVersion, YangVersionStatement>> {
+public final class YangVersionStatementSupport
+ extends AbstractStatementSupport<YangVersion, YangVersionStatement, YangVersionEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.YANG_VERSION)
.build();
}
@Override
- public void onPreLinkageDeclared(final Mutable<YangVersion, YangVersionStatement,
- EffectiveStatement<YangVersion, YangVersionStatement>> stmt) {
+ public void onPreLinkageDeclared(
+ final Mutable<YangVersion, YangVersionStatement, YangVersionEffectiveStatement> stmt) {
stmt.setRootVersion(stmt.getStatementArgument());
}
@Override
- public EffectiveStatement<YangVersion, YangVersionStatement> createEffective(final StmtContext<YangVersion,
- YangVersionStatement, EffectiveStatement<YangVersion, YangVersionStatement>> ctx) {
+ public YangVersionEffectiveStatement createEffective(
+ final StmtContext<YangVersion, YangVersionStatement, YangVersionEffectiveStatement> ctx) {
return new YangVersionEffectiveStatementImpl(ctx);
}
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.yin_element;
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.YinElementEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.YinElementStatement;
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 YinElementStatementSupport extends
- AbstractStatementSupport<Boolean, YinElementStatement, EffectiveStatement<Boolean, YinElementStatement>> {
+public final class YinElementStatementSupport
+ extends AbstractStatementSupport<Boolean, YinElementStatement, YinElementEffectiveStatement> {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
YangStmtMapping.YIN_ELEMENT).build();
private static final YinElementStatementSupport INSTANCE = new YinElementStatementSupport();
}
@Override
- public EffectiveStatement<Boolean, YinElementStatement> createEffective(
- final StmtContext<Boolean, YinElementStatement, EffectiveStatement<Boolean, YinElementStatement>> ctx) {
+ public YinElementEffectiveStatement createEffective(
+ final StmtContext<Boolean, YinElementStatement, YinElementEffectiveStatement> ctx) {
return new YinElementEffectiveStatementImpl(ctx);
}