bd27db7d52d486796fc3acb216a1ff2dbe6b142a
[controller.git] / opendaylight / md-sal / messagebus-impl / src / main / java / org / opendaylight / controller / messagebus / app / impl / TopicDOMNotification.java
1
2 /*
3  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
4  *
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
8  */
9
10 package org.opendaylight.controller.messagebus.app.impl;
11
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;
16
17 public class TopicDOMNotification implements DOMNotification {
18
19     private static final SchemaPath TOPIC_NOTIFICATION_ID = SchemaPath.create(true, TopicNotification.QNAME);
20     private final ContainerNode body;
21
22     public TopicDOMNotification(final ContainerNode body) {
23         this.body = body;
24     }
25
26     @Override
27     public SchemaPath getType() {
28         return TOPIC_NOTIFICATION_ID;
29     }
30
31     @Override
32     public ContainerNode getBody() {
33         return body;
34     }
35
36     @Override
37     public String toString() {
38         return "TopicDOMNotification [body=" + body + "]";
39     }
40 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.