import com.google.common.collect.ImmutableList;
import org.eclipse.jdt.annotation.NonNull;
-import org.opendaylight.yangtools.concepts.Immutable;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.NotificationDefinition;
public final class NotificationEffectiveStatementImpl
extends WithSubstatements<QName, NotificationStatement, NotificationEffectiveStatement>
implements NotificationDefinition, NotificationEffectiveStatement,
- SchemaNodeMixin<QName, NotificationStatement>, DataNodeContainerMixin<QName, NotificationStatement>,
+ SchemaNodeMixin<NotificationStatement>, DataNodeContainerMixin<QName, NotificationStatement>,
AugmentationTargetMixin<QName, NotificationStatement>, CopyableMixin<QName, NotificationStatement>,
MustConstraintMixin<QName, NotificationStatement> {
- private final @NonNull Immutable path;
+ private final @NonNull QName argument;
private final int flags;
public NotificationEffectiveStatementImpl(final NotificationStatement declared,
- final ImmutableList<? extends EffectiveStatement<?, ?>> substatements, final Immutable path,
+ final ImmutableList<? extends EffectiveStatement<?, ?>> substatements, final QName argument,
final int flags) {
super(declared, substatements);
- this.path = requireNonNull(path);
+ this.argument = requireNonNull(argument);
this.flags = flags;
}
- public NotificationEffectiveStatementImpl(final NotificationEffectiveStatementImpl original, final Immutable path,
+ public NotificationEffectiveStatementImpl(final NotificationEffectiveStatementImpl original, final QName argument,
final int flags) {
super(original);
- this.path = requireNonNull(path);
+ this.argument = requireNonNull(argument);
this.flags = flags;
}
@Override
public QName argument() {
- return getQName();
+ return argument;
}
@Override
return flags;
}
- @Override
- public Immutable pathObject() {
- return path;
- }
-
@Override
public NotificationEffectiveStatement asEffectiveStatement() {
return this;
@Override
public String toString() {
- return NotificationEffectiveStatementImpl.class.getSimpleName() + "[qname=" + getQName() + ", path=" + path
- + "]";
+ return NotificationEffectiveStatementImpl.class.getSimpleName() + "[qname=" + argument + "]";
}
}