Merge "Bug 499: Added support for old DOM Broker APIs."
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / core / AdvertisedBandwidth.java
index 37aa60deef058e9f08ac3920cab4a3adb86815e0..a0b5c0a18c777d61fb884c3d440762a9193265f2 100644 (file)
@@ -9,6 +9,8 @@
 
 package org.opendaylight.controller.sal.core;
 
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlRootElement;
 
 /**
@@ -21,27 +23,28 @@ import javax.xml.bind.annotation.XmlRootElement;
  * seconds.
  */
 @XmlRootElement
+@XmlAccessorType(XmlAccessType.NONE)
 @SuppressWarnings("serial")
 public class AdvertisedBandwidth extends Bandwidth {
-       public static final String AdvertisedBandwidthPropName = "advertisedBandwidth";
-       
-       public AdvertisedBandwidth(long value) {
-               super(AdvertisedBandwidthPropName);
-               this.bandwidthValue = value;
-       }
-       
-       /*
+        public static final String AdvertisedBandwidthPropName = "advertisedBandwidth";
+
+        public AdvertisedBandwidth(long value) {
+                super(AdvertisedBandwidthPropName);
+                this.bandwidthValue = value;
+        }
+
+        /*
      * Private constructor used for JAXB mapping
      */
     private AdvertisedBandwidth() {
-       super(AdvertisedBandwidthPropName);
-               this.bandwidthValue = 0;
+        super(AdvertisedBandwidthPropName);
+                this.bandwidthValue = 0;
     }
-       
-       public AdvertisedBandwidth clone() {
-               return new AdvertisedBandwidth(this.bandwidthValue);  
+
+        public AdvertisedBandwidth clone() {
+                return new AdvertisedBandwidth(this.bandwidthValue);
     }
-       
+
     @Override
     public String toString() {
         StringBuffer sb = new StringBuffer();