SAL Actions Property is OF1.0 specific
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / core / Name.java
index ddb663f5901fe8aa45ab2318a8e86615ae3de05d..65c089956a95eb876d21ee3e9f0a169f5b1f1c20 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.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
 
@@ -16,9 +18,10 @@ import javax.xml.bind.annotation.XmlRootElement;
  * The class represents the Name property of an element.
  */
 @XmlRootElement
+@XmlAccessorType(XmlAccessType.NONE)
 @SuppressWarnings("serial")
 public class Name extends Property {
-    @XmlElement
+    @XmlElement(name="value")
     private String nameValue;
     public static final String NamePropName = "name";
 
@@ -35,6 +38,7 @@ public class Name extends Property {
         this.nameValue = name;
     }
 
+    @Override
     public Name clone() {
         return new Name(this.nameValue);
     }
@@ -73,4 +77,9 @@ public class Name extends Property {
     public String toString() {
         return "Name[" + nameValue + "]";
     }
+
+    @Override
+    public String getStringValue() {
+        return nameValue;
+    }
 }