All StatementSupports must support DeclarationReference
[yangtools.git] / yang / rfc6643-parser-support / src / main / java / org / opendaylight / yangtools / rfc6643 / parser / MaxAccessStatementSupport.java
index 10a711edba9ba14c6c09eeba56f7b6914c3ecc08..abcb1faf23049f49cf394a635b4afc48e85710ed 100644 (file)
@@ -13,6 +13,7 @@ import org.opendaylight.yangtools.rfc6643.model.api.IetfYangSmiv2ExtensionsMappi
 import org.opendaylight.yangtools.rfc6643.model.api.MaxAccess;
 import org.opendaylight.yangtools.rfc6643.model.api.MaxAccessEffectiveStatement;
 import org.opendaylight.yangtools.rfc6643.model.api.MaxAccessStatement;
+import org.opendaylight.yangtools.yang.model.api.meta.DeclarationReference;
 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
 import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
@@ -58,6 +59,12 @@ public final class MaxAccessStatementSupport
         return new MaxAccessStatementImpl(ctx.getArgument(), substatements);
     }
 
+    @Override
+    protected MaxAccessStatement attachDeclarationReference(final MaxAccessStatement stmt,
+            final DeclarationReference reference) {
+        return new RefMaxAccessStatement(stmt, reference);
+    }
+
     @Override
     protected MaxAccessEffectiveStatement createEffective(final Current<MaxAccess, MaxAccessStatement> stmt,
             final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {