public class Article extends ActivityObject
The "article" Object type indicates that the Object is an article, such as a news article, a knowledge base entry, or other similar construct.
Articles generally consist of paragraphs of text, in some cases incorporating embedded media such as photos and inline hyperlinks to other resources.
The "Article" Object type is identified by the URL http://activitystrea.ms/schema/1.0/article.
An article has the following additional components:
- Name
- The title of the article. Represented by the Name component of the base Object Construct.
- Content
- The main body content of the article. Represented in JSON as a property called content whose value is a JSON string containing a fragment of HTML that represents the content.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
Article() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTypeIRI() |
getAddress, getLocation, setAddress, setLocation
clone, equals, findRelatedLink, getAlternateLinks, getAuthors, getCategories, getContents, getContributors, getCreated, getForeignMarkup, getId, getIssued, getModified, getModule, getModules, getOtherLinks, getPublished, getRights, getSource, getSummary, getTitle, getTitleEx, getUpdated, getXmlBase, hashCode, isMediaEntry, setAlternateLinks, setAuthors, setCategories, setContents, setContributors, setCreated, setForeignMarkup, setId, setIssued, setModified, setModules, setOtherLinks, setPublished, setRights, setSource, setSummary, setTitle, setTitleEx, setUpdated, setXmlBase, toString
private static final long serialVersionUID
public java.lang.String getTypeIRI()
getTypeIRI
in class ActivityObject