Promote UnknownEffectiveStatementBase to yang-model-spi
[yangtools.git] / parser / rfc6241-parser-support / src / main / java / org / opendaylight / yangtools / rfc6241 / parser / GetFilterElementAttributesEffectiveStatementImpl.java
1 /*
2  * Copyright (c) 2021 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.rfc6241.parser;
9
10 import com.google.common.collect.ImmutableList;
11 import org.opendaylight.yangtools.rfc6241.model.api.GetFilterElementAttributesEffectiveStatement;
12 import org.opendaylight.yangtools.rfc6241.model.api.GetFilterElementAttributesSchemaNode;
13 import org.opendaylight.yangtools.rfc6241.model.api.GetFilterElementAttributesStatement;
14 import org.opendaylight.yangtools.yang.common.Empty;
15 import org.opendaylight.yangtools.yang.common.QName;
16 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
17 import org.opendaylight.yangtools.yang.model.spi.meta.AbstractEffectiveUnknownSchmemaNode;
18 import org.opendaylight.yangtools.yang.parser.spi.meta.EffectiveStmtCtx.Current;
19
20 final class GetFilterElementAttributesEffectiveStatementImpl
21         extends AbstractEffectiveUnknownSchmemaNode<Empty, GetFilterElementAttributesStatement>
22         implements GetFilterElementAttributesEffectiveStatement, GetFilterElementAttributesSchemaNode {
23     GetFilterElementAttributesEffectiveStatementImpl(final Current<Empty, GetFilterElementAttributesStatement> stmt,
24             final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
25         super(stmt.declared(), stmt.argument(), stmt.history(), substatements);
26     }
27
28     @Override
29     public QName getQName() {
30         return getNodeType();
31     }
32
33     @Override
34     public GetFilterElementAttributesEffectiveStatement asEffectiveStatement() {
35         return this;
36     }
37 }