2 * Copyright (c) 2016 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
9 package org.opendaylight.yangtools.yang.model.api;
11 import com.google.common.annotations.Beta;
15 * Common interface for an operation.
18 public interface OperationDefinition extends SchemaNode {
20 * Returns the set of type definitions declared under this operation.
22 * @return Set of type definitions declared under this operation.
24 Set<TypeDefinition<?>> getTypeDefinitions();
27 * Returns the set of grouping statements declared under this operation.
29 * @return Set of grouping statements declared under this operation.
31 Set<GroupingDefinition> getGroupings();
34 * Returns definition of input parameters for this operation.
36 * @return Definition of input parameters for this operation.
37 * The substatements of input define nodes under the operation's input node.
39 ContainerSchemaNode getInput();
42 * Returns definition of output parameters for this operation.
44 * @return Definition of output parameters for this operation. The
45 * substatements of output define nodes under the operation's output node.
47 ContainerSchemaNode getOutput();