2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.messagebus.app.util;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.mdsal.dom.api.DOMNotification;
12 import org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.eventaggregator.rev141202.TopicNotification;
13 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
14 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
16 @Deprecated(forRemoval = true)
17 public class TopicDOMNotification implements DOMNotification {
18 private static final @NonNull Absolute TOPIC_NOTIFICATION_ID = Absolute.of(TopicNotification.QNAME);
20 private final ContainerNode body;
22 public TopicDOMNotification(final ContainerNode body) {
27 public Absolute getType() {
28 return TOPIC_NOTIFICATION_ID;
32 public ContainerNode getBody() {
37 public String toString() {
38 return "TopicDOMNotification [body=" + body + "]";