]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/module/ExecutionSpec.js
Implementing new runtime
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-lib / slc / class / org / argeo / slc / ria / module / ExecutionSpec.js
1 /**
2 * Wrapper for ExecutionSpec server object
3 */
4 qx.Class.define("org.argeo.slc.ria.module.ExecutionSpec", {
5
6 extend : qx.core.Object,
7
8 properties : {
9 /**
10 * Unique name of this spec
11 */
12 name : {
13 check : "String",
14 init : ""
15 },
16 /**
17 * Defined parameters
18 */
19 values : {
20 check : "Map",
21 init : {}
22 },
23 /**
24 * Castor representation of this object
25 */
26 xmlNode : {
27 apply : "_applyXmlNode"
28 }
29 },
30
31 statics : {
32 XPATH_NAME : "@name",
33 XPATH_VALUES : "slc:values"
34 },
35
36 construct : function(){},
37
38 members : {
39 /**
40 * Init the object from an XML representation
41 * @param xmlNode {Node} Castor representation of this object
42 */
43 _applyXmlNode : function(xmlNode){
44 // Parse now
45 this.setName(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME));
46 }
47 }
48
49 });