Fork me on GitHub Fork me on GitHub

Entry


<%
//creating entries for feed
var entry = new Entry();
entry.title = "Jaggery Sample Entry";
entry.content = "This is content for a sample atom entry";
entry.authors = ["wso2", "Jaggery"];
 
//creating list of entris
var entries  = new Array();
entries.push(entry);
 
//creating feed
var feed= new Feed();
//adding new entries for Feed
feed.entries = entries;
 
//printing the feed
print(feed.toString());
%>

Overview

Entry object is the container for entries returned by Feed.


Members

Member Type Description
idString
entry.id
Returns the id.
entry.id = "id1";
Setting the id attribute.
authorsString [ ]
entry.authors[i]
Returns the i th author of the entry.
entry.authors = ["author1","author2"];
Setting an array of authors to the entry.
categoriesString [ ]
entry.categories[i]
Returns the i th category of the entry.
entry.categories = ["cat1","cat2"];
Setting an array of categories to the entry.
contentString
entry.content
Returns the content.
entry.content = "content1";
Setting the content attribute.
contributorsString [ ]
entry.contributors[i]
Returns the i th contributor of the entry.
entry.contributors = ["cont1","cont2"];
Setting an array of contributors to the entry.
linksString [ ]
entry.links[i]
Returns the i th location of the entry.
entry.links = ["link1","link2"];
Setting locations of the entry.
publishedDate
entry.published
Returns the published date of the entry.
var d1 = new Date("March 13, 2013 11:13:00")
entry.published = d1;
Setting published date of the entry.
rightsString
entry.rights
Returns the rights associated with this entry.
entry.rights = "right1";
Setting rights associated with this entry.
summaryString
entry.summary
Returns the summary of this entry.
entry.summary = "summary1";
Setting the summary attribute.
titleString
entry.title
Returns the title of this entry.
entry.title = "title1";
Setting the title attribute.
updatedDate
entry.updated
Returns the last updated date of the entry.
var d1 = new Date("March 13, 2013 11:13:00")
entry.updated = d1;
Setting the last updated date of the entry.

Operations

Operations Returns Description
Entry()Entry
var entry = new Entry();
Returns an Entry object
toXML()XML
entry.toXML()
Returns the E4X XML contents of this Entry object.
toString()String
entry.toString()
Returns the String representation of the Entry