note description: "Descriptor of function argument" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WIZARD_PARAM_DESCRIPTOR inherit WIZARD_DESCRIPTOR redefine is_equal end WIZARD_WRITER_DICTIONARY export {NONE} all redefine is_equal end ECOM_PARAM_FLAGS redefine is_equal end create make feature -- Initialization make (a_creator: WIZARD_PARAMETER_DESCRIPTOR_FACTORY) -- Initialize require valid_creator: a_creator /= Void do a_creator.initialize_descriptor (Current) ensure valid_name: name /= Void and then name.count /= 0 valid_type: type /= Void end feature -- Access name: STRING -- Argument name type: WIZARD_DATA_TYPE_DESCRIPTOR -- Argument type flags: INTEGER -- Argument flags -- See class ECOM_PARAM_FLAGS for values description: STRING -- Parameter description feature -- Status report is_equal (other: WIZARD_PARAM_DESCRIPTOR): BOOLEAN -- Is `other' same parameter? do Result := type.is_equal_data_type (other.type) end feature -- Elements Setting set_name (a_name: STRING) -- Set `name' with `a_name'. require non_void_name: a_name /= Void valid_name: not a_name.is_empty do name := a_name.twin ensure valid_name: name /= Void and then not name.is_empty and name.is_equal (a_name) end set_type (a_type: WIZARD_DATA_TYPE_DESCRIPTOR) -- Set `type' with `a_type'. require valid_type: a_type /= Void do type := a_type ensure valid_type: type /= Void and type = a_type end set_flags (some_flags: INTEGER) -- Set `falgs' with `some_flags'. require valid_flags: is_valid_paramflag (some_flags) do flags := some_flags ensure valid_flags: is_valid_paramflag (flags) and flags = some_flags end set_description (a_description: STRING) -- Set `description' with `a_description'. do description := a_description ensure description_set: description = a_description end note copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class WIZARD_PARAM_DESCRIPTOR