Updated a few comments.

Renamed generator to follow *_FEED_GENERATOR naming.
Renamed feed entry as feed item.
Made FEED conforms to ITERABLE [FEED_ITEM] for convenience.
This commit is contained in:
2015-09-16 10:02:09 +02:00
parent a5e150d1c0
commit e2c70e6d70
13 changed files with 67 additions and 39 deletions

View File

@@ -4,7 +4,7 @@ note
revision: "$Revision$"
class
ATOM_GENERATOR
ATOM_FEED_GENERATOR
inherit
FEED_VISITOR
@@ -44,7 +44,7 @@ feature -- Visitor
append_content_tag_to ("updated", Void, date_to_string (dt), buffer)
end
across
a_feed.entries as ic
a_feed.items as ic
loop
ic.item.accept (Current)
end
@@ -53,7 +53,7 @@ feature -- Visitor
buffer.append ("</feed>")
end
visit_entry (a_entry: FEED_ENTRY)
visit_item (a_entry: FEED_ITEM)
do
buffer.append (indentation)
buffer.append ("<entry>%N")

View File

@@ -36,7 +36,7 @@ feature -- Access
local
l_title: READABLE_STRING_32
x_entry, x_link: detachable XML_ELEMENT
e: FEED_ENTRY
e: FEED_ITEM
l_author: FEED_AUTHOR
lnk: FEED_LINK
s: STRING_32
@@ -92,7 +92,7 @@ feature -- Access
e.set_author (l_author)
end
end
Result.add_entry (e)
Result.add_item (e)
end
end
end