Interface NotificationNodeContainer
-
- All Known Subinterfaces:
AnnotationSchemaNodeAwareSchemaContext
,AugmentationSchemaNode
,ContainerSchemaNode
,EffectiveModelContext
,GroupingDefinition
,ListSchemaNode
,Module
,NotificationNodeContainerCompat<A,D>
,SchemaContext
- All Known Implementing Classes:
AbstractEffectiveContainerSchemaNode
,AbstractEffectiveModule
,AbstractEffectiveOperationContainerSchemaNode
,AbstractSchemaContext
,EffectiveAugmentationSchema
,EffectiveSchemaContext
,FilteringSchemaContextProxy
,OperationAsContainer
,SimpleSchemaContext
public interface NotificationNodeContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<NotificationDefinition>
findNotification(QName qname)
Find a notification based on its QName.@NonNull Set<NotificationDefinition>
getNotifications()
Return the set of notifications in this container, keyed by QName.
-
-
-
Method Detail
-
getNotifications
@NonNull Set<NotificationDefinition> getNotifications()
Return the set of notifications in this container, keyed by QName. RFC7950 specifies thatAugmentationSchemaNode
s,GroupingDefinition
s,ListSchemaNode
s andContainerSchemaNode
s can also containNotificationDefinition
s.- Returns:
- set of notification nodes
-
findNotification
default Optional<NotificationDefinition> findNotification(QName qname)
Find a notification based on its QName. Default implementation searches the set returned bygetNotifications()
.- Parameters:
qname
- Notification QName- Returns:
- Notification definition, if found
- Throws:
NullPointerException
- if qname is null
-
-