Cleanup checkstyle in yang-{data,model}-api
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / NotificationNodeContainer.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.collect.ImmutableSet;
12 import java.util.Set;
13 import javax.annotation.Nonnull;
14
15 public interface NotificationNodeContainer {
16
17     /**
18      * All implementations should override this method.
19      * The default definition of this method is used in YANG 1.0 (RFC6020) implementations of
20      * AugmentationSchema, GroupingDefinition, ListSchemaNode and ContainerSchemaNode
21      * which do not allow notification statements.
22      * These YANG statements have been changed in YANG 1.1 (RFC7950) and can now contain notification statements.
23      *
24      * <p>
25      * The default definition is also used by implementations of ContainerSchemaNode which do not support
26      * notification statements such as InputEffectiveStatementImpl and OutputEffectiveStatementImpl.
27      *
28      * @return set of notification nodes
29      */
30     @Nonnull default Set<NotificationDefinition> getNotifications() {
31         return ImmutableSet.of();
32     }
33 }