note description: "Class representing an Eiffel class of the % % application as described in the common directory % % BUILDGEN\common." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" id: "$Id$" revision: "$Revision$" class APPLICATION_CLASS inherit EV_LIST_ITEM undefine is_equal end COMPARABLE undefine copy, default_create redefine is_equal end create make feature -- Creation make (a_name: STRING) -- Create a class with the name `a_name'. require class_name_not_void: a_name /= Void class_name_not_empty: not a_name.empty do default_create class_name := a_name set_text (class_name) create query_list.make create command_list.make create routine_list.make create generated_routines.make end feature -- Attributes class_name: STRING -- Name of the class query_list: LINKED_LIST [APPLICATION_QUERY] -- List of queries command_list: LINKED_LIST [APPLICATION_COMMAND] -- List of commands routine_list: LINKED_LIST [APPLICATION_ROUTINE] -- List of routines generated_routines: LINKED_LIST [APPLICATION_ROUTINE] feature -- Access add_command (a_command: APPLICATION_COMMAND) -- Add `a_command' to the list of commands. require valid_command: a_command /= Void do command_list.extend (a_command) end add_query (a_query: APPLICATION_QUERY) -- Add `a_query' to the list of queries. require valid_query: a_query /= Void do query_list.extend (a_query) end add_routine (a_routine: APPLICATION_ROUTINE) -- Add `a_routine' to the list of routines. require valid_routine: a_routine /= Void do routine_list.extend (a_routine) end add_generated_routine (a_routine: APPLICATION_ROUTINE) -- Add `a_routine' to the list of routines. require valid_routine: a_routine /= Void do generated_routines.extend (a_routine) end feature -- SCROLLABLE_LIST_ELEMENT value: STRING -- String that appears in a scrollable list. do Result := class_name end feature -- Comparison is_equal (other: like Current): BOOLEAN -- Equality. do Result := class_name.is_equal (other.class_name) end is_less alias "<" (other: like Current): BOOLEAN -- Less than do Result := class_name < other.class_name 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 APPLICATION_CLASS