Class Article
- java.lang.Object
-
- com.rometools.rome.feed.atom.Entry
-
- com.rometools.modules.activitystreams.types.ActivityObject
-
- com.rometools.modules.activitystreams.types.Article
-
- All Implemented Interfaces:
HasLocation,Extendable,Serializable,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Article()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTypeIRI()-
Methods inherited from class com.rometools.modules.activitystreams.types.ActivityObject
getAddress, getLocation, setAddress, setLocation
-
Methods inherited from class com.rometools.rome.feed.atom.Entry
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
-
-
-
-
Method Detail
-
getTypeIRI
public String getTypeIRI()
- Specified by:
getTypeIRIin classActivityObject
-
-