Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / rpc / RpcStatementRFC7950Support.java
1 /*
2  * Copyright (c) 2017 Cisco Systems, Inc. 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.rpc;
9
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.input.InputStatementRFC7950Support;
12 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.output.OutputStatementRFC7950Support;
13 import org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport;
14
15 /**
16  * Bridge class for RFC7950 RPCs. Specializes implicit input/output statements.
17  *
18  * @author Robert Varga
19  */
20 @Beta
21 public final class RpcStatementRFC7950Support extends AbstractRpcStatementSupport {
22     // TODO: share instances
23     private static final StatementSupport<?, ?, ?> IMPLICIT_INPUT = new InputStatementRFC7950Support();
24     private static final StatementSupport<?, ?, ?> IMPLICIT_OUTPUT = new OutputStatementRFC7950Support();
25
26     @Override
27     StatementSupport<?, ?, ?> implictInput() {
28         return IMPLICIT_INPUT;
29     }
30
31     @Override
32     StatementSupport<?, ?, ?> implictOutput() {
33         return IMPLICIT_OUTPUT;
34     }
35 }