public class Review extends ActivityObject
The "review" object type represents a primarily prose-based commentary on another object.
The "review" object type is identified by the URI http://activitystrea.ms/schema/1.0/review.
A review has the following additional components:
- Title
- The title of the review. Represented by the Name component of the base Object Construct. Many systems do not have the concept of a title for a review; such systems MUST omit the Name component. Processors SHOULD refer to such reviews as simply being "a review", with appropriate localization, if they are to be described in a sentence.
- Content
- The content of the comment. Represented in JSON as a property called content whose value is a JSON string containing a fragment of HTML that represents the content. Publishers SHOULD include any markup necessary to achieve a similar presentation to that on the publisher's own HTML pages, including any links that the service automatically adds. Processors MAY remove all HTML markup and consider the comment to be plain text.
- Reviewed Object
- The Object Construct representing the item that this review applies to. Represented as the In Reply To Object component of the base Object Construct.
- Rating
- A rating for the item, given as a number between 1.0 and 5.0 inclusive with one decimal place of precision. Represented in JSON as a property called rating whose value is a JSON number giving the rating.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
Review() |
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