Cleanup checkstyle in yang-{data,model}-api
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ActionNodeContainer.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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
9 package org.opendaylight.yangtools.yang.model.api;
10
11 import com.google.common.annotations.Beta;
12 import com.google.common.collect.ImmutableSet;
13 import java.util.Set;
14
15 /**
16  * Node which can contain action nodes.
17  */
18 @Beta
19 public interface ActionNodeContainer {
20     /**
21      * All implementations should override this method.
22      * The default definition of this method is used in YANG 1.0 (RFC6020) implementations of
23      * AugmentationSchema, GroupingDefinition, ListSchemaNode and ContainerSchemaNode
24      * which do not allow action statements.
25      * These YANG statements have been changed in YANG 1.1 (RFC7950) and can now contain action statements.
26      *
27      * <p>
28      * The default definition is also used by implementations of ContainerSchemaNode which do not support
29      * action statements such as InputEffectiveStatementImpl, OutputEffectiveStatementImpl and SchemaContext.
30      *
31      * @return set of action nodes
32      */
33     default Set<ActionDefinition> getActions() {
34         return ImmutableSet.of();
35     }
36 }