note description: "Document Item" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" deferred class DOCUMENT_ITEM inherit ANY redefine is_equal end feature {NONE} -- Initialization make (a_name: STRING) -- Initialize Current with `name' set to `a_name'. do name := a_name end feature -- Access name: STRING -- Name previous: detachable like Current next: detachable like Current feature -- Status setting set_previous (a_prev: like previous) -- Set `previous' do previous := a_prev update_position ensure prev_set: previous = a_prev end set_next (a_next: like next) -- Set `next' require a_next_not_void: a_next /= Void do next := a_next update_position ensure next_set: next = a_next end feature -- Status is_equal (other: like Current): BOOLEAN -- Compare the names do Result := (other /= Void) and then (name.is_equal (other.name)) end feature {NONE} -- Implementation update_position -- Update position deferred end note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" 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 DOCUMENT_ITEM