Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
SAL Actions Property is OF1.0 specific
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
core
/
Tables.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java
index 156a0b8ee0225a3b719b7019976c6bc4556a55ba..724c8427f6edbe0003ed202930d0267cba04ede4 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java
@@
-9,6
+9,8
@@
package org.opendaylight.controller.sal.core;
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;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@@
-20,9
+22,10
@@
import javax.xml.bind.annotation.XmlRootElement;
* Describes supported # of datapath tables
*/
@XmlRootElement
* Describes supported # of datapath tables
*/
@XmlRootElement
+@XmlAccessorType(XmlAccessType.NONE)
public class Tables extends Property {
private static final long serialVersionUID = 1L;
public class Tables extends Property {
private static final long serialVersionUID = 1L;
- @XmlElement
+ @XmlElement
(name="value")
private byte tablesValue;
public static final String TablesPropName = "tables";
private byte tablesValue;
public static final String TablesPropName = "tables";
@@
-45,6
+48,7
@@
public class Tables extends Property {
this.tablesValue = 0;
}
this.tablesValue = 0;
}
+ @Override
public Tables clone() {
return new Tables(this.tablesValue);
}
public Tables clone() {
return new Tables(this.tablesValue);
}
@@
-79,4
+83,9
@@
public class Tables extends Property {
public String toString() {
return "Tables[" + tablesValue + "]";
}
public String toString() {
return "Tables[" + tablesValue + "]";
}
+
+ @Override
+ public String getStringValue() {
+ return String.format("%02x", tablesValue);
+ }
}
}