a:18:{s:9:"#provides";s:18:"dojox.wire.ml.Data";s:9:"#resource";s:15:"wire/ml/Data.js";s:9:"#requires";a:3:{i:0;a:3:{i:0;s:6:"common";i:1;s:13:"dijit._Widget";i:2;s:5:"dijit";}i:1;a:3:{i:0;s:6:"common";i:1;s:16:"dijit._Container";i:2;s:5:"dijit";}i:2;a:2:{i:0;s:6:"common";i:1;s:18:"dojox.wire.ml.util";}}s:18:"dojox.wire.ml.Data";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:13:"dijit._Widget";}s:4:"call";a:2:{i:0;s:13:"dijit._Widget";i:1;s:16:"dijit._Container";}}s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:26:"dijit._Container.prototype";}}s:7:"summary";s:26:"A widget for a data object";s:11:"description";s:170:"This widget represents an object with '_properties' property. If child 'DataProperty' widgets exist, they are used to initialize propertiy values of '_properties' object.";s:9:"classlike";b:1;}s:26:"dojox.wire.ml.Data.startup";a:5:{s:9:"prototype";s:18:"dojox.wire.ml.Data";s:4:"type";s:8:"Function";s:6:"source";s:31:" this._initializeProperties();";s:7:"summary";s:28:"Call _initializeProperties()";s:11:"description";s:28:"See _initializeProperties().";}s:40:"dojox.wire.ml.Data._initializeProperties";a:7:{s:9:"prototype";s:18:"dojox.wire.ml.Data";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"reset";a:2:{s:4:"type";s:7:"Boolean";s:7:"summary";s:37:"A boolean to reset current properties";}}s:6:"source";s:288:" if(!this._properties || reset){ this._properties = {}; } var children = this.getChildren(); for(var i in children){ var child = children[i]; if((child instanceof dojox.wire.ml.DataProperty) && child.name){ this.setPropertyValue(child.name, child.getValue()); } }";s:7:"summary";s:24:"Initialize a data object";s:11:"description";s:173:"If this widget has child DataProperty widgets, their getValue() methods are called and set the return value to a property specified by 'name' attribute of the child widgets.";s:7:"private";b:1;}s:35:"dojox.wire.ml.Data.getPropertyValue";a:8:{s:9:"prototype";s:18:"dojox.wire.ml.Data";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"property";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:15:"A property name";}}s:6:"source";s:47:" return this._properties[property]; //anything";s:7:"summary";s:23:"Return a property value";s:11:"description";s:105:"This method returns the value of a property, specified with 'property' argument, in '_properties' object.";s:14:"return_summary";s:16:"A property value";s:7:"returns";s:8:"anything";}s:35:"dojox.wire.ml.Data.setPropertyValue";a:6:{s:9:"prototype";s:18:"dojox.wire.ml.Data";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:8:"property";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:15:"A property name";}s:5:"value";a:2:{s:4:"type";s:8:"anything";s:7:"summary";s:16:"A property value";}}s:6:"source";s:37:" this._properties[property] = value;";s:7:"summary";s:22:"Store a property value";s:11:"description";s:102:"This method stores 'value' as a property, specified with 'property' argument, in '_properties' object.";}s:30:"dojox.wire.ml.Data._properties";a:3:{s:8:"instance";s:18:"dojox.wire.ml.Data";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.wire.ml.DataProperty";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:13:"dijit._Widget";}s:4:"call";a:2:{i:0;s:13:"dijit._Widget";i:1;s:16:"dijit._Container";}}s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:26:"dijit._Container.prototype";}}s:7:"summary";s:34:"A widget to define a data property";s:11:"description";s:342:"Attributes of this widget are used to add a property to the parent Data widget. 'type' attribute specifies one of "string", "number", "boolean", "array", "object" and "element" (DOM Element) (default to "string"). If 'type' is "array" or "object", child DataProperty widgets are used to initialize the array elements or the object properties.";s:9:"classlike";b:1;}s:31:"dojox.wire.ml.DataProperty.name";a:3:{s:9:"prototype";s:26:"dojox.wire.ml.DataProperty";s:4:"type";s:1:"A";s:7:"summary";s:13:"property name";}s:31:"dojox.wire.ml.DataProperty.type";a:4:{s:9:"prototype";s:26:"dojox.wire.ml.DataProperty";s:8:"instance";s:26:"dojox.wire.ml.DataProperty";s:4:"type";s:1:"A";s:7:"summary";s:18:"property type name";}s:32:"dojox.wire.ml.DataProperty.value";a:3:{s:9:"prototype";s:26:"dojox.wire.ml.DataProperty";s:4:"type";s:1:"A";s:7:"summary";s:14:"property value";}s:40:"dojox.wire.ml.DataProperty._getValueAttr";a:5:{s:9:"prototype";s:26:"dojox.wire.ml.DataProperty";s:4:"type";s:8:"Function";s:6:"source";s:25:" return this.getValue();";s:7:"private";b:1;s:7:"summary";s:0:"";}s:35:"dojox.wire.ml.DataProperty.getValue";a:7:{s:9:"prototype";s:26:"dojox.wire.ml.DataProperty";s:4:"type";s:8:"Function";s:6:"source";s:1058:" var value = this.value; if(this.type){ if(this.type == "number"){ value = parseInt(value); }else if(this.type == "boolean"){ value = (value == "true"); }else if(this.type == "array"){ value = []; var children = this.getChildren(); for(var i in children){ var child = children[i]; if(child instanceof dojox.wire.ml.DataProperty){ value.push(child.getValue()); } } }else if(this.type == "object"){ value = {}; var children = this.getChildren(); for(var i in children){ var child = children[i]; if((child instanceof dojox.wire.ml.DataProperty) && child.name){ value[child.name] = child.getValue(); } } }else if(this.type == "element"){ value = new dojox.wire.ml.XmlElement(value); var children = this.getChildren(); for(var i in children){ var child = children[i]; if((child instanceof dojox.wire.ml.DataProperty) && child.name){ value.setPropertyValue(child.name, child.getValue()); } } } } return value; //anything";s:7:"summary";s:24:"Returns a property value";s:11:"description";s:138:"If 'type' is specified, 'value' attribute is converted to the specified type and returned. Otherwise, 'value' attribute is returned as is.";s:14:"return_summary";s:16:"A property value";s:7:"returns";s:8:"anything";}s:13:"dojox.wire.ml";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:10:"dojox.wire";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}