*/\r
qx.Class.define("org.argeo.slc.ria.SlcExecutionMessage", {\r
extend : qx.core.Object,\r
+ /**\r
+ * New instance\r
+ * @param uuid {String} The Uuid of the message. If none is passed, one is generated.\r
+ */\r
construct : function(uuid){\r
this.base(arguments);\r
if(uuid){\r
check : "String",\r
init : "user"\r
},\r
+ /**\r
+ * Date of the message. now() by default.\r
+ */\r
date : {\r
check : "String", \r
init : new Date().toString()\r
},\r
members : {\r
\r
+ /**\r
+ * Add a free attribute to the message\r
+ * @param attName {String} Name\r
+ * @param attValue {String} Value\r
+ */\r
addAttribute: function(attName, attValue){\r
var attr = this.getAttributes();\r
attr[attName] = attValue;\r
return builder.get();\r
},\r
\r
+ /**\r
+ * Parse an XML answer and fill the object with it.\r
+ * @param slcExecXml {String} An slcExecMessage mapped in XML.\r
+ */\r
fromXml : function(slcExecXml){\r
var NSMap = {slc:"http://argeo.org/projects/slc/schemas"}; \r
this.setStatus(org.argeo.ria.util.Element.getSingleNodeText(slcExecXml, "slc:status", NSMap));\r