X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FBuffers.java;h=274b0f481d397795651950b9abc75b7bab0ad0c1;hb=4e030fd879511523386ca14e738d21a4ec05dcdb;hp=99089d9096c9db1e0c37391e790322b093db5f47;hpb=7c3362df780f30a47d0f6a7b7695360bbb5513bc;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Buffers.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Buffers.java index 99089d9096..274b0f481d 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Buffers.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Buffers.java @@ -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.XmlElement; import javax.xml.bind.annotation.XmlRootElement; @@ -20,9 +22,10 @@ import javax.xml.bind.annotation.XmlRootElement; * Describes supported buffers (#packets) */ @XmlRootElement +@XmlAccessorType(XmlAccessType.NONE) public class Buffers extends Property { private static final long serialVersionUID = 1L; - @XmlElement + @XmlElement(name="value") private int buffersValue; public static final String BuffersPropName = "buffers"; @@ -46,6 +49,7 @@ public class Buffers extends Property { this.buffersValue = 0; } + @Override public Buffers clone() { return new Buffers(this.buffersValue); } @@ -80,4 +84,9 @@ public class Buffers extends Property { public String toString() { return "Buffers[" + buffersValue + "]"; } + + @Override + public String getStringValue() { + return Integer.toHexString(buffersValue); + } }