indexing
description: "Objects that contains all the information relative to any header. Headers can only have email addresses informations."
author: "David s"
date: "$Date$"
revision: "$Revision$"
class interface
HEADER
create
make (item: STRING)
make_with_entries (list: ARRAY [STRING])
feature
make (item: STRING)
make_with_entries (list: ARRAY [STRING])
feature
entries: ARRAYED_LIST [STRING]
feature
multiple_entries: BOOLEAN
unique_entry: STRING
require
has_unique_entry: not multiple_entries
feature
enable_contains_addresses
enable_multiple_entries
feature
add_entries (list: ARRAY [STRING])
require
entries_exist: entries /= void
add_entry (s: STRING)
ensure
has_multiple_entries: multiple_entries
entry_inserted: entries.has (s)
remove_entry (entry: STRING)
require
has_entry: entries.has (entry)
remove_i_th_entry (i: INTEGER)
require
valid_index: entries.valid_cursor_index (i)
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- HEADER