Bug 6897: [YANG 1.1] Allow notifications to be tied to data nodes 95/58695/2
authorxygeng <geng.xingyuan@zte.com.cn>
Mon, 12 Jun 2017 07:57:50 +0000 (15:57 +0800)
committerRobert Varga <nite@hq.sk>
Mon, 12 Jun 2017 13:23:44 +0000 (13:23 +0000)
Change-Id: I6143907b8d2ee1b9e78cb9d76c0db3d252419f00
Signed-off-by: Geng Xingyuan <geng.xingyuan@zte.com.cn>
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/ContainerSchemaNodes.java

index c8241d5e753f0954e5f6a82da450b6cd10692ec5..ed9a45c0bb3e4146cda6ab35229e289c320061e6 100644 (file)
@@ -193,6 +193,11 @@ public final class ContainerSchemaNodes {
             mapNodes = Maps.uniqueIndex(notification.getChildNodes(), DataSchemaNode::getQName);
         }
 
+        @Override
+        public Set<NotificationDefinition> getNotifications() {
+            return ImmutableSet.of(notification);
+        }
+
         @Override
         public Set<AugmentationSchema> getAvailableAugmentations() {
             return notification.getAvailableAugmentations();