Subversion Repositories Applications.papyrus

Rev

Rev 1318 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1318 alexandre_ 1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
4
 
5
	Licensed under the Academic Free License version 2.1 or above OR the
6
	modified BSD license. For more information on Dojo licensing, see:
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
10
 
1422 alexandre_ 11
 
12
 
1318 alexandre_ 13
dojo.provide("dojo.data.old.Attribute");
14
dojo.require("dojo.data.old.Item");
15
dojo.require("dojo.lang.assert");
16
dojo.data.old.Attribute = function (dataProvider, attributeId) {
17
	dojo.lang.assertType(dataProvider, dojo.data.old.provider.Base, {optional:true});
18
	dojo.lang.assertType(attributeId, String);
19
	dojo.data.old.Item.call(this, dataProvider);
20
	this._attributeId = attributeId;
21
};
22
dojo.inherits(dojo.data.old.Attribute, dojo.data.old.Item);
23
dojo.data.old.Attribute.prototype.toString = function () {
24
	return this._attributeId;
25
};
26
dojo.data.old.Attribute.prototype.getAttributeId = function () {
27
	return this._attributeId;
28
};
29
dojo.data.old.Attribute.prototype.getType = function () {
30
	return this.get("type");
31
};
32
dojo.data.old.Attribute.prototype.setType = function (type) {
33
	this.set("type", type);
34
};
35