2 * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.rpc;
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;
16 * Bridge class for RFC7950 RPCs. Specializes implicit input/output statements.
18 * @author Robert Varga
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();
27 StatementSupport<?, ?, ?> implictInput() {
28 return IMPLICIT_INPUT;
32 StatementSupport<?, ?, ?> implictOutput() {
33 return IMPLICIT_OUTPUT;