Adding to annotations, the user should be able to create a mashup feed item
class if (s)he create a class that is complaint with RSS or ATOM feed (i.e, a
simple POJO that contains the basic feed attributes:
1. Title
2. Desc
3. Link
4. Category.
5. Author.
For example)
To define a feed item, this can work:
@FeedItem
public class NewsItem {
String title;
String desc;
String link;
String category;
String author;
@ItemTitle
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@ItemDescription
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
@ItemLink
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
@ItemCategory
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
@ItemAuthor
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
}
Or
@FeedItem
public class NewsItem {
String title;
String desc;
String link;
String category;
String author;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return desc;
}
public void setDescription(String desc) {
this.desc = desc;
}
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
}
Original issue reported on code.google.com by Hazem.sa...@gmail.com on 30 Mar 2013 at 1:58
Original issue reported on code.google.com by
Hazem.sa...@gmail.com
on 30 Mar 2013 at 1:58