fe3b33c110ad5135ca5ba2b1e33be89c32b22ca5
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / devicemanager / impl / src / main / java / org / opendaylight / mwtn / devicemanager / impl / xml / AttributeValueChangedNotificationXml.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.XmlElement;
12 import javax.xml.bind.annotation.XmlRootElement;
13
14 import org.opendaylight.mwtn.base.internalTypes.InternalDateAndTime;
15
16 @XmlRootElement(name = "AttributeValueChangedNotification")
17 public class AttributeValueChangedNotificationXml extends MwtNotificationBase implements GetEventType {
18
19     private static String EVENTTYPE =  "AttributeValueChangedNotification";
20
21     @XmlElement(name = "attributeName")
22     private String attributeName;
23
24     @XmlElement(name = "newValue")
25     private String newValue;
26
27     public AttributeValueChangedNotificationXml() {
28
29     }
30
31     /**
32      * Normalized notification
33      * @param nodeName name of mountpoint
34      * @param counter of notification
35      * @param timeStamp from ne
36      * @param objectIdRef from ne
37      * @param attributeName from ne
38      * @param newValue from ne
39      */
40     public AttributeValueChangedNotificationXml(String nodeName, String counter, InternalDateAndTime timeStamp, String objectIdRef,
41             String attributeName, String newValue) {
42         super(nodeName, counter, timeStamp, objectIdRef);
43         this.attributeName = attributeName;
44         this.newValue = newValue;
45     }
46
47     public String getAttributeName() {
48         return attributeName;
49     }
50
51     public String getNewValue() {
52         return newValue;
53     }
54
55     @Override
56     public String getEventType() {
57         return EVENTTYPE;
58     }
59
60 }