Populate xpath/ hierarchy
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / extension / UnrecognizedEffectiveStatement.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.yang.parser.rfc7950.stmt.extension;
9
10 import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
11 import org.opendaylight.yangtools.yang.model.api.stmt.UnrecognizedStatement;
12 import org.opendaylight.yangtools.yang.model.spi.meta.AbstractDeclaredEffectiveStatement;
13
14 /**
15  * An 'implementation' of an effective UnrecognizedStatement. This class is actually never instantiated and exists
16  * only as an implementation-private marker for {@link StatementDefinition#getEffectiveRepresentationClass()}.
17  */
18 final class UnrecognizedEffectiveStatement extends AbstractDeclaredEffectiveStatement<Object, UnrecognizedStatement> {
19     private UnrecognizedEffectiveStatement() {
20         // This should never be called
21     }
22
23     @Override
24     public StatementDefinition statementDefinition() {
25         throw new UnsupportedOperationException();
26     }
27
28     @Override
29     public String argument() {
30         throw new UnsupportedOperationException();
31     }
32
33     @Override
34     public UnrecognizedStatement getDeclared() {
35         throw new UnsupportedOperationException();
36     }
37 }