2 * Copyright (c) 2016 Wipro Ltd. 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.mwtn.devicemanager.impl.xml;
11 import javax.xml.bind.annotation.XmlRootElement;
13 import org.opendaylight.mwtn.base.internalTypes.InternalDateAndTime;
15 @XmlRootElement(name = "ObjectDeletionNotification")
16 public class ObjectDeletionNotificationXml extends MwtNotificationBase implements GetEventType {
18 private static String EVENTTYPE = "ObjectDeletionNotification";
20 public ObjectDeletionNotificationXml() {
25 * Normalized notification
26 * @param nodeName name of mountpoint or instance that owns the problem
27 * @param counter of notification
28 * @param timeStamp from ne
29 * @param objectIdRef from ne
31 public ObjectDeletionNotificationXml(String nodeName, String counter, InternalDateAndTime timeStamp, String objectIdRef) {
32 super(nodeName, counter, timeStamp, objectIdRef);
36 public ObjectDeletionNotificationXml(String nodeName, ObjectDeletionNotification notification) {
37 super(nodeName, notification.getCounter().toString(), InternalDateAndTime.valueOf(notification.getTimeStamp()),
38 // notification.getObjectId().getValue());
39 notification.getObjectIdRef().getValue());
42 public ObjectDeletionNotificationXml(String nodeName, org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.microwave.model.rev170324.ObjectDeletionNotification notification) {
43 super(nodeName, notification.getCounter().toString(), InternalDateAndTime.valueOf(notification.getTimeStamp()),
44 // notification.getObjectId().getValue());
45 notification.getObjectIdRef().getValue());
49 public String getEventType() {