Retain DeclarationReference in DeclaredStatements
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / type / UnionSpecificationImpl.java
index 833dd04a64a6372d92933a85ac319e70e831e536..425c899e089a28fb5b4b9d0f97323f1dc4597915 100644 (file)
@@ -7,12 +7,15 @@
  */
 package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.type;
 
+import com.google.common.collect.ImmutableList;
+import org.opendaylight.yangtools.yang.common.QName;
+import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.TypeStatement.UnionSpecification;
-import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
-import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
+import org.opendaylight.yangtools.yang.model.spi.meta.AbstractDeclaredStatement.WithArgument.WithSubstatements;
 
-final class UnionSpecificationImpl extends AbstractDeclaredStatement<String> implements UnionSpecification {
-    UnionSpecificationImpl(final StmtContext<String, UnionSpecification, ?> context) {
-        super(context);
+final class UnionSpecificationImpl extends WithSubstatements<QName> implements UnionSpecification {
+    UnionSpecificationImpl(final String rawArgument, final QName argument,
+            final ImmutableList<? extends DeclaredStatement<?>> substatements) {
+        super(rawArgument, argument, substatements);
     }
 }