Package com.rometools.modules.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getAuthors()Array of Author Names.StringgetNewsSource()Source for this article.IntegergetPages()Number of pages in the article.DategetPublishDate()Date article was published.voidsetAuthors(String[] authors)Array of Author Names.voidsetNewsSource(String newsSource)Source for this article.voidsetPages(Integer pages)Number of pages in the article.voidsetPublishDate(Date publishDate)Date article was published.-
Methods inherited from interface com.rometools.modules.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
-
-