2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.controller.yang.model.api;
\r
10 import java.util.Set;
\r
13 * Interface describing YANG 'rpc' statement.
\r
15 * The rpc statement defines an rpc node in the schema tree. Under the rpc node,
\r
16 * a schema node with the name 'input', and a schema node with the name 'output'
\r
20 public interface RpcDefinition extends SchemaNode {
\r
23 * @return Set of type definitions declared under this rpc statement.
\r
25 Set<TypeDefinition<?>> getTypeDefinitions();
\r
28 * @return Set of grouping statements declared under this rpc statement.
\r
30 Set<GroupingDefinition> getGroupings();
\r
33 * @return Definition of input parameters to the RPC operation. The
\r
34 * substatements of input define nodes under the RPC's input node.
\r
36 ContainerSchemaNode getInput();
\r
39 * @return Definition of output parameters to the RPC operation. The
\r
40 * substatements of output define nodes under the RPC's output node.
\r
42 ContainerSchemaNode getOutput();
\r