Remove SchemaNode.getPath()
[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.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.rfc6241.model.api.GetFilterElementAttributesEffectiveStatement;
13 import org.opendaylight.yangtools.rfc6241.model.api.GetFilterElementAttributesSchemaNode;
14 import org.opendaylight.yangtools.rfc6241.model.api.GetFilterElementAttributesStatement;
15 import org.opendaylight.yangtools.yang.common.Empty;
16 import org.opendaylight.yangtools.yang.common.QName;
17 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
18 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.UnknownEffectiveStatementBase;
19 import org.opendaylight.yangtools.yang.parser.spi.meta.EffectiveStmtCtx.Current;
20
21 final class GetFilterElementAttributesEffectiveStatementImpl
22         extends UnknownEffectiveStatementBase<Empty, GetFilterElementAttributesStatement>
23         implements GetFilterElementAttributesEffectiveStatement, GetFilterElementAttributesSchemaNode {
24     private final @NonNull QName qname;
25
26     GetFilterElementAttributesEffectiveStatementImpl(final Current<Empty, GetFilterElementAttributesStatement> stmt,
27             final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
28         super(stmt, substatements);
29         qname = stmt.publicDefinition().getStatementName();
30     }
31
32     @Override
33     public QName getQName() {
34         return qname;
35     }
36
37     @Override
38     public GetFilterElementAttributesEffectiveStatement asEffectiveStatement() {
39         return this;
40     }
41 }