Interface NotificationNodeContainer
-
- All Known Subinterfaces:
AnnotationSchemaNodeAwareSchemaContext
,AugmentationSchemaNode
,ContainerLike
,ContainerSchemaNode
,EffectiveModelContext
,EffectiveStatementMixins.NotificationNodeContainerMixin<A,D>
,EffectiveStatementMixins.OperationContainerMixin<D>
,GroupingDefinition
,InputSchemaNode
,ListSchemaNode
,Module
,ModuleLike
,NotificationNodeContainerCompat<A,D,E>
,OutputSchemaNode
,SchemaContext
,Submodule
- All Known Implementing Classes:
AbstractEffectiveModule
,AbstractSchemaContext
,AugmentEffectiveStatementImpl
,ContainerEffectiveStatementImpl
,DeclaredInputEffectiveStatement
,DeclaredOutputEffectiveStatement
,EffectiveAugmentationSchema
,EffectiveSchemaContext
,FilteringSchemaContextProxy
,GroupingEffectiveStatementImpl
,NotificationAsContainer
,OperationAsContainer
,SimpleSchemaContext
,UndeclaredInputEffectiveStatement
,UndeclaredOutputEffectiveStatement
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 Collection<? extends @NonNull NotificationDefinition>
getNotifications()
Return the set of notifications in this container, keyed by QName.
-
-
-
Method Detail
-
getNotifications
@NonNull Collection<? extends @NonNull 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
-
-