Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | 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
 
11
dojo.provide("dojo.data.old.Attribute");
12
dojo.require("dojo.data.old.Item");
13
dojo.require("dojo.lang.assert");
14
dojo.data.old.Attribute = function (dataProvider, attributeId) {
15
	dojo.lang.assertType(dataProvider, dojo.data.old.provider.Base, {optional:true});
16
	dojo.lang.assertType(attributeId, String);
17
	dojo.data.old.Item.call(this, dataProvider);
18
	this._attributeId = attributeId;
19
};
20
dojo.inherits(dojo.data.old.Attribute, dojo.data.old.Item);
21
dojo.data.old.Attribute.prototype.toString = function () {
22
	return this._attributeId;
23
};
24
dojo.data.old.Attribute.prototype.getAttributeId = function () {
25
	return this._attributeId;
26
};
27
dojo.data.old.Attribute.prototype.getType = function () {
28
	return this.get("type");
29
};
30
dojo.data.old.Attribute.prototype.setType = function (type) {
31
	this.set("type", type);
32
};
33