org.rometools.feed.module.base
Interface Article

All Superinterfaces:
GlobalInterface, Serializable
All Known Subinterfaces:
GoogleBase
All Known Implementing Classes:
GoogleBaseImpl

public interface Article
extends GlobalInterface

This is an interface for the GoogleBase plug in that exposes methods used for Article or News entry types.

Version:
$Revision: 1.2 $
Author:
Robert "kebernet" Cooper

Method Summary
 String[] getAuthors()
          Array of Author Names.
 String getNewsSource()
          Source for this article.
 Integer getPages()
          Number of pages in the article.
 Date getPublishDate()
          Date article was published.
 void setAuthors(String[] authors)
          Array of Author Names.
 void setNewsSource(String newsSource)
          Source for this article.
 void setPages(Integer pages)
          Number of pages in the article.
 void setPublishDate(Date publishDate)
          Date article was published.
 
Methods inherited from interface org.rometools.feed.module.base.GlobalInterface
getExpirationDate, getExpirationDateTime, getId, getImageLinks, getLabels, setExpirationDate, setExpirationDateTime, setId, setImageLinks, setLabels
 

Method Detail

setAuthors

void setAuthors(String[] authors)
Array of Author Names. Limit 10.
author
Details Author of the item.
Example <g:author>John Steinbeck</g:author>
Attribute of Reference Items, News and Articles
Content type string

Parameters:
authors - Array of Author Names. Limit 10.

getAuthors

String[] getAuthors()
Array of Author Names. Limit 10.
author
Details Author of the item.
Example <g:author>John Steinbeck</g:author>
Attribute of Reference Items, News and Articles
Content type string

Returns:
Array of author names.

setNewsSource

void setNewsSource(String newsSource)
Source for this article.
news_source
Details The source of news content.
Example <g:news_source>Journal</g:news_source>
Attribute of News and Articles
Content type string

Parameters:
newsSource - Source for this article

getNewsSource

String getNewsSource()
Source for this article.
news_source
Details The source of news content.
Example <g:news_source>Journal</g:news_source>
Attribute of News and Articles
Content type string

Returns:
source for this article.

setPages

void setPages(Integer pages)
Number of pages in the article.
pages
Details The number of pages in the publication.
Example <g:pages>18</g:pages>
Attribute of Reference Items, News and Articles
Content type integer

Parameters:
pages - Number of pages in the article

getPages

Integer getPages()
Number of pages in the article.
pages
Details The number of pages in the publication.
Example <g:pages>18</g:pages>
Attribute of Reference Items, News and Articles
Content type integer

Returns:
Number of pages in the article

setPublishDate

void setPublishDate(Date publishDate)
Date article was published.
publish_date
Details Date the item was published in ISO 8601 format: YYYY-MM-DD
Example <g:publish_date>2005-12-20</g:publish_date>
Attribute of Reference Items
Content type date

Parameters:
publishDate - Date article was published

getPublishDate

Date getPublishDate()
Date article was published.
publish_date
Details Date the item was published in ISO 8601 format: YYYY-MM-DD
Example <g:publish_date>2005-12-20</g:publish_date>
Attribute of Reference Items
Content type date

Returns:
Date article was published


Copyright © 2013 ROME Project. All Rights Reserved.