Package org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.eventaggregator.rev141202
Interface TopicNotification
-
- All Superinterfaces:
Augmentable<TopicNotification>
,BaseNotification
,BindingObject
,DataContainer
,DataObject
,Notification
public interface TopicNotification extends DataObject, Augmentable<TopicNotification>, Notification
Notification of an event occuring on a particular node. This notification acts as an encapsulation for the event being delivered.This class represents the following YANG schema fragment defined in module UnqualifiedQName{localName=event-aggregator}
notification topic-notification { leaf topic-id { type topic-id; } leaf node-id { type string; } anyxml payload { } }
The schema path to identify an instance is event-aggregator/topic-notificationTo create instances of this class use
TopicNotificationBuilder
.- See Also:
TopicNotificationBuilder
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static boolean
bindingEquals(@NonNull TopicNotification thisObj, Object obj)
Default implementation ofObject.equals(Object)
contract for this interface.static int
bindingHashCode(@NonNull TopicNotification obj)
Default implementation ofObject.hashCode()
contract for this interface.static String
bindingToString(@NonNull TopicNotification obj)
Default implementation ofObject.toString()
contract for this interface.@Nullable String
getNodeId()
Return nodeId, ornull
if it is not present..@Nullable Payload
getPayload()
Return payload, ornull
if it is not present..@Nullable TopicId
getTopicId()
Return topicId, ornull
if it is not present..default Class<TopicNotification>
implementedInterface()
-
Methods inherited from interface org.opendaylight.yangtools.yang.binding.Augmentable
augmentation, augmentations
-
-
-
-
Field Detail
-
QNAME
static final @NonNull QName QNAME
-
-
Method Detail
-
implementedInterface
default Class<TopicNotification> implementedInterface()
- Specified by:
implementedInterface
in interfaceDataContainer
- Specified by:
implementedInterface
in interfaceDataObject
-
bindingHashCode
static int bindingHashCode(@NonNull TopicNotification obj)
Default implementation ofObject.hashCode()
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj
- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException
- ifobj
is null
-
bindingEquals
static boolean bindingEquals(@NonNull TopicNotification thisObj, Object obj)
Default implementation ofObject.equals(Object)
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj
- Object acting as the receiver of equals invocationobj
- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException
- ifthisObj
is null
-
bindingToString
static String bindingToString(@NonNull TopicNotification obj)
Default implementation ofObject.toString()
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj
- Object for which to generate toString() result.- Returns:
String
value of data modeled by this interface.- Throws:
NullPointerException
- ifobj
is null
-
getTopicId
@Nullable TopicId getTopicId()
Return topicId, ornull
if it is not present..Topic to which this event is being delivered.
- Returns:
org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.eventaggregator.rev141202.TopicId
topicId, ornull
if it is not present.
-
getNodeId
@Nullable String getNodeId()
Return nodeId, ornull
if it is not present..Node ID of the node which generated the event.
- Returns:
java.lang.String
nodeId, ornull
if it is not present.
-
getPayload
@Nullable Payload getPayload()
Return payload, ornull
if it is not present..Encapsulated notification. The format is the XML representation of a notification according to RFC6020 section 7.14.2.
- Returns:
org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.eventaggregator.rev141202.topic.notification.Payload
payload, ornull
if it is not present.
-
-