PageRenderTime 55ms CodeModel.GetById 52ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/library/server/rest/handler/rest_request_handler_parameter.e

http://github.com/jocelyn/EiffelWebReloaded
Specman e | 65 lines | 40 code | 14 blank | 11 comment | 1 complexity | 5941affdad0b6a14a88336b564bbce72 MD5 | raw file
 1note
 2	description: "Summary description for {REST_REQUEST_HANDLER_PARAMETER}."
 3	date: "$Date$"
 4	revision: "$Revision$"
 5
 6class
 7	REST_REQUEST_HANDLER_PARAMETER
 8
 9create
10	make
11
12feature {NONE} -- Initialization
13
14	make (n: like name; opt: BOOLEAN)
15		do
16			name := n
17			optional := opt
18		end
19
20feature -- Access
21
22	name: STRING
23			-- Parameter's name
24			--| either field's name for GET,POST, ... variables
25			--| or parameters in URI such as foo/{foo}
26
27	optional: BOOLEAN
28			-- Optional parameters
29
30	value_name: detachable STRING
31			-- Parameter's value name/description
32			--| either field's name for GET,POST, ... variables
33			--| or parameters in URI such as foo/{foo}
34
35	description: detachable STRING assign set_description
36			-- Description of Current parameters
37
38	type: detachable STRING assign set_type
39			-- Expected type of value
40
41feature -- Element change
42
43	set_description (d: like description)
44			-- Set `description' to `d'
45		do
46			description := d
47		end
48
49	set_type (t: like type)
50			-- Set `type' to `t'
51		do
52			type := t
53		end
54
55note
56	copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
57	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
58	source: "[
59			Eiffel Software
60			5949 Hollister Ave., Goleta, CA 93117 USA
61			Telephone 805-685-1006, Fax 805-685-6869
62			Website http://www.eiffel.com
63			Customer support http://support.eiffel.com
64		]"
65end