indexing description: "[ Represents a code template metadata section. ]" legal: "See notice at end of class." status: "See notice at end of class."; date: "$Date$"; revision: "$Revision$" class CODE_METADATA inherit CODE_SUB_NODE [CODE_TEMPLATE_DEFINITION] create make feature {NONE} -- Initialization initialize_nodes (a_factory: like code_factory) -- Initializes the default nodes for Current. -- -- `a_factory': Factory used for creating nodes. do set_title (create {!STRING_32}.make_empty) set_description (create {!STRING_32}.make_empty) set_author (create {!STRING_32}.make_empty) set_shortcut (create {!STRING_32}.make_empty) set_categories (a_factory.create_code_category_collection (Current)) end feature -- Access title: !STRING_32 assign set_title -- Code template title, used by UI for a terse description description: !STRING_32 assign set_description -- Code template description, used by UI for a more detailed descrition of its function author: !STRING_32 assign set_author -- Owner/author of the code template. shortcut: !STRING_32 assign set_shortcut -- Shortcut identifier, used in editing to insert the code template quickly categories: !CODE_CATEGORY_COLLECTION assign set_categories -- A collection of categories that the code template belongs to feature -- Element change set_title (a_title: like title) -- Set `title' with `a_title'. do title := a_title.twin ensure title_assigned: title.is_equal (a_title) end set_description (a_description: like description) -- Set `description' with `a_description'. do description := a_description.twin ensure description_assigned: description.is_equal (a_description) end set_author (a_author: like author) -- Set `author' with `a_author'. do author := a_author.twin ensure author_assigned: author.is_equal (a_author) end set_shortcut (a_shortcut: like shortcut) -- Set `shortcut' with `a_shortcut'. do shortcut := a_shortcut.twin ensure shortcut_assigned: shortcut.is_equal (a_shortcut) end set_categories (a_categories: like categories) -- Set `categories' with `a_categories'. do categories := a_categories ensure categories_assigned: categories = a_categories categories_parent_set: categories.parent = Current end feature -- Visitor process (a_visitor: !CODE_TEMPLATE_VISITOR_I) -- do a_visitor.process_code_metadata (Current) end ;indexing copyright: "Copyright (c) 1984-2008, 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