Class Article

An article is content that is typically organized by category or keyword.

1public class Article
2extends CategorizedItem

Fields 

FieldDescriptionModifier and Type
modifiedDateDate and time when this article was last modified.java.util.Date
subTitleSubtitle for this article.java.lang.String

Fields inherited from class CategorizedItem:

Fields inherited from class Item:

modifiedDate 

1@Nullable
2public Date modifiedDate

Date and time when this article was last modified. For other dates that can be set, see Item.expiration and Item.published.

subTitle 

1@Nullable
2public String subTitle

Subtitle for this article. To set the title, see Item.name .

Constructors 

1Article(java.lang.String id)

Creates an article with the required ID only.

Article 

1public Article(@NonNull
2               String id)

Creates an article with the required ID only. The article can then be further modified.

Parameters 

ParameterDescriptionRequired?
idSee Item.idYes

Methods 

MethodModifier and Type
fromJSONObject(org.json.JSONObject json, java.lang.String id)static Article
getItemType()String

Methods inherited from class Item:

fromJSONObject 

1public static Article fromJSONObject(org.json.JSONObject json,
2                                     java.lang.String id)

getItemType 

1public String getItemType()

Specified by getItemType in class Item.