*/
package org.opendaylight.mdsal.dom.api;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
+import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
/**
- * A single YANG notification.
+ * A single YANG notification. This interface captures the data portion of a notification. Implementations may choose
+ * to additionally implement {@link DOMEvent}, in which case {@link DOMEvent#getEventInstant()} returns the time when
+ * this notification was generated -- and corresponds to <a href="https://tools.ietf.org/html/rfc5277#section-2.2.1">
+ * RFC5277</a> NETCONF notification's {@code eventTime} parameter.
*/
public interface DOMNotification {
/**
*
* @return Notification type.
*/
- @Nonnull SchemaPath getType();
+ @NonNull Absolute getType();
/**
* Return the body of this notification.
*
* @return Notification body.
*/
- @Nonnull ContainerNode getBody();
+ @NonNull ContainerNode getBody();
}