Remove SchemaNode.getPath()
[yangtools.git] / model / yang-model-ri / src / main / java / org / opendaylight / yangtools / yang / model / ri / stmt / impl / eff / NotificationEffectiveStatementImpl.java
index 70a5b3da2cb88680c50ba907beccc0de703d8f5b..df37d60d27e2769e4aa8298d24d227a2aff84c0c 100644 (file)
@@ -11,7 +11,6 @@ import static java.util.Objects.requireNonNull;
 
 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;
@@ -28,31 +27,31 @@ import org.opendaylight.yangtools.yang.model.spi.meta.EffectiveStatementMixins.S
 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
@@ -65,11 +64,6 @@ public final class NotificationEffectiveStatementImpl
         return flags;
     }
 
-    @Override
-    public Immutable pathObject() {
-        return path;
-    }
-
     @Override
     public NotificationEffectiveStatement asEffectiveStatement() {
         return this;
@@ -77,7 +71,6 @@ public final class NotificationEffectiveStatementImpl
 
     @Override
     public String toString() {
-        return NotificationEffectiveStatementImpl.class.getSimpleName() + "[qname=" + getQName() + ", path=" + path
-                + "]";
+        return NotificationEffectiveStatementImpl.class.getSimpleName() + "[qname=" + argument + "]";
     }
 }