sprd/data/LabelService.js
function (object, label, callback) {

                var labelObject = this.$.dataSource.createEntity(ObjectLabel);

                labelObject.set({
                    object: object,
                    objectType: this.$.dataSource.createEntity(ObjectType, this.getObjectTypeIdForElement(object)),
                    label: label
                });

                labelObject.save(callback);
            }
function (object, label, callback) {

                var labelObject = this.$.dataSource.createEntity(ObjectLabel);

                labelObject.set({
                    object: object,
                    objectType: this.$.dataSource.createEntity(ObjectType, this.getObjectTypeIdForElement(object)),
                    label: label
                });

                labelObject.save(callback);
            }
function ( object , label , callback ) { var labelObject = this . $ . dataSource . createEntity ( ObjectLabel ) ; labelObject . set ( { object : object , objectType : this . $ . dataSource . createEntity ( ObjectType , this . getObjectTypeIdForElement ( object ) ) , label : label } ) ; labelObject . save ( callback ) ; }
Labels an object with the given label

@param {sprd.model.Model} object
@param {sprd.model.Label} label
@param {Function} callback
Labels an object with the given label