Remove DOMDataTreeProducer-related classes
[controller.git] / opendaylight / md-sal / messagebus-util / src / main / java / org / opendaylight / controller / messagebus / app / util / TopicDOMNotification.java
index 69a8b2795a5ef3c92927414ec5c9531799e7ee7e..7afb381eca4125de5cb2740dc21d08858276f80d 100644 (file)
@@ -7,14 +7,16 @@
  */
 package org.opendaylight.controller.messagebus.app.util;
 
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.mdsal.dom.api.DOMNotification;
 import org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.eventaggregator.rev141202.TopicNotification;
 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;
 
+@Deprecated(forRemoval = true)
 public class TopicDOMNotification implements DOMNotification {
+    private static final @NonNull Absolute TOPIC_NOTIFICATION_ID = Absolute.of(TopicNotification.QNAME);
 
-    private static final SchemaPath TOPIC_NOTIFICATION_ID = SchemaPath.create(true, TopicNotification.QNAME);
     private final ContainerNode body;
 
     public TopicDOMNotification(final ContainerNode body) {
@@ -22,7 +24,7 @@ public class TopicDOMNotification implements DOMNotification {
     }
 
     @Override
-    public SchemaPath getType() {
+    public Absolute getType() {
         return TOPIC_NOTIFICATION_ID;
     }