Add seed code for sdnr app based on ONF Centennial
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / devicemanager / impl / src / main / java / org / opendaylight / mwtn / devicemanager / impl / xml / ObjectDeletionNotificationXml.java
1 /*
2 * Copyright (c) 2016 Wipro Ltd. and others. All rights reserved.
3 *
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
7 */
8
9 package org.opendaylight.mwtn.devicemanager.impl.xml;
10
11 import javax.xml.bind.annotation.XmlRootElement;
12
13 import org.opendaylight.mwtn.base.internalTypes.InternalDateAndTime;
14
15 @XmlRootElement(name = "ObjectDeletionNotification")
16 public class ObjectDeletionNotificationXml extends MwtNotificationBase implements GetEventType {
17
18     private static String EVENTTYPE =  "ObjectDeletionNotification";
19
20     public ObjectDeletionNotificationXml() {
21
22     }
23
24     /**
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
30      */
31     public ObjectDeletionNotificationXml(String nodeName, String counter, InternalDateAndTime timeStamp, String objectIdRef) {
32         super(nodeName, counter, timeStamp,  objectIdRef);
33     }
34
35     /*
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());
40     }*/
41 /*
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());
46     }
47 */
48     @Override
49     public String getEventType() {
50         return EVENTTYPE;
51     }
52
53 }