Bug 6897: [YANG 1.1] Allow notifications to be tied to data nodes
[yangtools.git] / 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();