Class Article

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

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

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

subTitle

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

Creates an article with the required ID only.

Article

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

Parameters

ParameterDescriptionRequired?
idSee Item.idYes
MethodModifier and Type
fromJSONObject(org.json.JSONObject json, java.lang.String id)static Article
toJSONObject()org.json.JSONObject

Methods inherited from class Item:

Methods inherited from class java.lang.Object:

  • equals
  • getClass
  • hashCode
  • notify
  • notifyAll
  • toString
  • wait
  • wait
  • wait

toJSONObject

Overrides

toJSONObject in class CategorizedItem.

fromJSONObject