2 * Copyright (c) 2013 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
9 package org.opendaylight.openflowplugin.openflow.md.core.plan;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
12 import org.opendaylight.yangtools.yang.binding.Notification;
17 public class SwitchTestNotificationEventImpl implements
18 SwitchTestNotificationEvent {
20 private Notification notification;
24 * the notification to set
26 public void setNotification(Notification notification) {
27 this.notification = notification;
31 public Notification getPlannedNotification() {
36 public String toString() {
37 StringBuffer sb = new StringBuffer("SwitchTestNotificationEventImpl [notification=");
38 if (notification instanceof OfHeader) {
39 OfHeader header = (OfHeader) notification;
40 sb.append("version:").append(header.getVersion()).append(";")
41 .append("xid:").append(header.getXid()).append(";")
42 .append("type:").append(header.getClass().getSimpleName());
44 sb.append(notification.toString());