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