import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.model.api.CaseSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ElementCountConstraint;
import org.opendaylight.yangtools.yang.model.api.IdentitySchemaNode;
}
public static AugmentEffectiveStatement createAugment(final AugmentStatement declared,
- final SchemaNodeIdentifier argument, final int flags, final QNameModule rootModuleQName,
+ final SchemaNodeIdentifier argument, final int flags,
final ImmutableList<? extends EffectiveStatement<?, ?>> substatements)
throws SubstatementIndexingException {
- return new AugmentEffectiveStatementImpl(declared, argument, flags, rootModuleQName, substatements);
+ return new AugmentEffectiveStatementImpl(declared, argument, flags, substatements);
}
public static BaseEffectiveStatement createBase(final BaseStatement declared,
import com.google.common.collect.ImmutableList;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.QNameModuleAware;
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;
public final class AugmentEffectiveStatementImpl
extends DefaultWithSchemaTree<SchemaNodeIdentifier, AugmentStatement>
- implements AugmentEffectiveStatement, AugmentationSchemaNode, QNameModuleAware,
+ implements AugmentEffectiveStatement, AugmentationSchemaNode,
DocumentedNodeMixin.WithStatus<SchemaNodeIdentifier, AugmentStatement>,
DataNodeContainerMixin<SchemaNodeIdentifier, AugmentStatement>,
ActionNodeContainerMixin<SchemaNodeIdentifier, AugmentStatement>,
NotificationNodeContainerMixin<SchemaNodeIdentifier, AugmentStatement>,
WhenConditionMixin<SchemaNodeIdentifier, AugmentStatement> {
private final @NonNull SchemaNodeIdentifier argument;
- private final @NonNull QNameModule rootModuleQName;
private final int flags;
public AugmentEffectiveStatementImpl(final AugmentStatement declared, final SchemaNodeIdentifier argument,
- final int flags, final QNameModule rootModuleQName,
- final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
+ final int flags, final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
super(declared, substatements);
this.argument = requireNonNull(argument);
- this.rootModuleQName = requireNonNull(rootModuleQName);
this.flags = flags;
}
return dataSchemaNode(name);
}
- @Override
- public QNameModule getQNameModule() {
- return rootModuleQName;
- }
-
@Override
public AugmentEffectiveStatement asEffectiveStatement() {
return this;
AbstractAugmentStatementSupport(final YangParserConfiguration config, final SubstatementValidator validator) {
super(YangStmtMapping.AUGMENT, StatementPolicy.copyDeclared(
- (copy, current, substatements) ->
- copy.getArgument().equals(current.getArgument())
- && copy.moduleName().getModule().equals(current.moduleName().getModule())
- ), config, validator);
+ (copy, current, substatements) -> copy.getArgument().equals(current.getArgument())),
+ config, validator);
}
@Override
.toFlags();
try {
- return EffectiveStatements.createAugment(stmt.declared(), stmt.getArgument(), flags,
- stmt.moduleName().getModule(), substatements);
+ return EffectiveStatements.createAugment(stmt.declared(), stmt.getArgument(), flags, substatements);
} catch (SubstatementIndexingException e) {
throw new SourceException(e.getMessage(), stmt, e);
}