Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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