fd66922e72517dfe6c9545d0b6060e9dd5e7a2ac
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / rpc / RpcStatementRFC6020Support.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies, 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.rpc;
9
10 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.input.InputStatementRFC6020Support;
11 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.output.OutputStatementRFC6020Support;
12 import org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport;
13
14 public final class RpcStatementRFC6020Support extends AbstractRpcStatementSupport {
15     // TODO: share instances
16     private static final StatementSupport<?, ?, ?> IMPLICIT_INPUT = new InputStatementRFC6020Support();
17     private static final StatementSupport<?, ?, ?> IMPLICIT_OUTPUT = new OutputStatementRFC6020Support();
18
19     @Override
20     StatementSupport<?, ?, ?> implictInput() {
21         return IMPLICIT_INPUT;
22     }
23
24     @Override
25     StatementSupport<?, ?, ?> implictOutput() {
26         return IMPLICIT_OUTPUT;
27     }
28 }