Promote UnknownEffectiveStatementBase to yang-model-spi
[yangtools.git] / parser / rfc8528-parser-support / src / main / java / org / opendaylight / yangtools / rfc8528 / parser / MountPointEffectiveStatementImpl.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.rfc8528.parser;
9
10 import com.google.common.collect.ImmutableList;
11 import org.opendaylight.yangtools.rfc8528.model.api.MountPointEffectiveStatement;
12 import org.opendaylight.yangtools.rfc8528.model.api.MountPointSchemaNode;
13 import org.opendaylight.yangtools.rfc8528.model.api.MountPointStatement;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
16 import org.opendaylight.yangtools.yang.model.spi.meta.AbstractEffectiveUnknownSchmemaNode;
17 import org.opendaylight.yangtools.yang.parser.spi.meta.EffectiveStmtCtx.Current;
18
19 final class MountPointEffectiveStatementImpl extends AbstractEffectiveUnknownSchmemaNode<QName, MountPointStatement>
20         implements MountPointEffectiveStatement, MountPointSchemaNode {
21     MountPointEffectiveStatementImpl(final Current<QName, MountPointStatement> stmt,
22             final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
23         super(stmt.declared(), stmt.argument(), stmt.history(), substatements);
24     }
25
26     @Override
27     public QName getQName() {
28         return argument();
29     }
30
31     @Override
32     public MountPointEffectiveStatement asEffectiveStatement() {
33         return this;
34     }
35 }