indexing
description: "Class which contains the information relative to an html page."
date: "$Date$"
revision: "$Revision$"
class interface
HTML_PAGE
create
make
HTML
make_from_template (fi_n: STRING)
HTML
require
path_not_void: fi_n /= void
ensure
image_exists: image /= void
feature
make
HTML
make_from_template (fi_n: STRING)
HTML
require
path_not_void: fi_n /= void
ensure
image_exists: image /= void
feature
out: STRING
feature
add_html_code (s: STRING)
require
code_exists: s /= void
insert_hidden_field (name, value: STRING)
require
has_form: out.substring_index ("</form>", 1) > 0 or out.substring_index ("</FORM>", 1) > 0
replace_marker (a_marker, s: STRING)
require
not_void: a_marker /= void and s /= void
invariant
page_exists: out /= void
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- HTML_PAGE