2 * Copyright (c) 2013 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.model.api;
13 * Interface describing YANG 'rpc' statement.
15 * The rpc statement defines an rpc node in the schema tree. Under the rpc node,
16 * a schema node with the name 'input', and a schema node with the name 'output'
20 public interface RpcDefinition extends SchemaNode {
23 * @return Set of type definitions declared under this rpc statement.
25 Set<TypeDefinition<?>> getTypeDefinitions();
28 * @return Set of grouping statements declared under this rpc statement.
30 Set<GroupingDefinition> getGroupings();
33 * @return Definition of input parameters to the RPC operation. The
34 * substatements of input define nodes under the RPC's input node.
36 ContainerSchemaNode getInput();
39 * @return Definition of output parameters to the RPC operation. The
40 * substatements of output define nodes under the RPC's output node.
42 ContainerSchemaNode getOutput();