public class Comment extends ActivityObject
The "comment" object type represents a textual response to another object.
The comment object type MUST NOT be used for other kinds of replies, such as video replies or reviews.
The "comment" object type is identified by the URI http://activitystrea.ms/schema/1.0/comment.
A comment has the following additional components:
- Subject
- The subject of the comment. Represented by the Name component of the base Object Construct. Many systems do not have the concept of a title or subject for a comment; such systems MUST omit the Name component. Processors SHOULD refer to such comments as simply being "a comment", 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.
Constructor and Description |
---|
Comment() |
Modifier and Type | Method and Description |
---|---|
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
public String getTypeIRI()
getTypeIRI
in class ActivityObject
Copyright © 2023. All rights reserved.