package org.opendaylight.controller.sal.core;
+import java.util.Date;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
* to qualify what are we talking about
*/
@XmlRootElement
+@XmlAccessorType(XmlAccessType.NONE)
public class TimeStamp extends Property {
private static final long serialVersionUID = 1L;
@XmlElement(name = "value")
public String toString() {
return "TimeStamp[" + timestampName + ": " + timestamp +"]";
}
+
+ @Override
+ public String getStringValue() {
+ return timestampName + ": " + new Date(timestamp);
+ }
}