X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fapi%2FNotificationNodeContainer.java;h=922207bc28b899fd60d786f185581e38009a4bab;hb=b3b36d58f323a30db123f54c96de3a36bccc8fdb;hp=a8b8ea5f4a6213afe54faaea39dd8dbe1a0c6786;hpb=5a336d87625a4c791bd21eec1f75820aa22132c3;p=yangtools.git diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/NotificationNodeContainer.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/NotificationNodeContainer.java index a8b8ea5f4a..922207bc28 100644 --- a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/NotificationNodeContainer.java +++ b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/NotificationNodeContainer.java @@ -8,25 +8,17 @@ package org.opendaylight.yangtools.yang.model.api; -import com.google.common.collect.ImmutableSet; import java.util.Set; import javax.annotation.Nonnull; public interface NotificationNodeContainer { /** - * All implementations should override this method. - * The default definition of this method is used in YANG 1.0 (RFC6020) implementations of - * AugmentationSchema, GroupingDefinition, ListSchemaNode and ContainerSchemaNode - * which do not allow action statements. - * These YANG statements have been changed in YANG 1.1 (RFC7950) and can now contain notification statements. - * - * The default definition is also used by implementations of ContainerSchemaNode which do not support - * notification statements such as InputEffectiveStatementImpl and OutputEffectiveStatementImpl. - * + * Return the set of notifications in this container, keyed by QName. RFC7950 specifies that + * {@link AugmentationSchemaNode}s, {@link GroupingDefinition}s, {@link ListSchemaNode}s and + * {@link ContainerSchemaNode}s can also contain {@link NotificationDefinition}s. + * * @return set of notification nodes */ - @Nonnull default Set getNotifications() { - return ImmutableSet.of(); - } + @Nonnull Set getNotifications(); }