note description: "Summary description for {CONF_LOCATION_MAPPER_ACTION}." date: "$Date$" revision: "$Revision$" class CONF_LOCATION_MAPPER_ACTION create make feature -- Initialization make (a_mapping: like mapping; a_location: like location; a_action: like action) do mapping := a_mapping location := a_location action := a_action create parameters.make_caseless (0) end feature -- Access mapping: CONF_LOCATION_MAPPING -- Associated mapping object. location: READABLE_STRING_32 -- Location associated with current mapper action. action: READABLE_STRING_32 -- Action identifier representing the expected action. parameters: STRING_TABLE [READABLE_STRING_32] -- Eventual parameters for Current action. parameter (a_name: READABLE_STRING_GENERAL): detachable READABLE_STRING_32 assign force_parameter -- Parameter associated with `a_name'. do if attached parameters.item (a_name) as val then Result := val end end feature -- Status report is_action (a_action: READABLE_STRING_GENERAL): BOOLEAN -- Is current action same as `a_action'? do Result := a_action.is_case_insensitive_equal (action) end feature -- Change force_parameter (a_value: detachable READABLE_STRING_32; a_key: READABLE_STRING_GENERAL) -- Set parameter `a_key' to value `a_value'. do if a_value /= Void then parameters.force (a_value, a_key) else parameters.force ({STRING_32} "", a_key) end end note copyright: "Copyright (c) 1984-2014, 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 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end