Class Info |
|---|
public final class Comment extends GenericJson 文件评论模型类。 |
Qualifier and Type |
Method Name and Description |
|---|---|
clone() 克隆一个Comment类对象。 |
|
String |
获取资源类型的标识。 |
User |
获取创建评论的用户信息。 |
DateTime |
获取评论创建时间。 |
Boolean |
获取评论是否已删除。 |
String |
获取评论内容。 |
DateTime |
获取评论的最近一次修改时间。 |
String |
获取html格式的评论内容。 |
String |
getId() 获取评论ID。 |
String |
获取以JSON字符串表示的文档的区域。 |
| 获取评论所指的文件内容。 |
|
List<Reply> |
获取评论的所有回复。 |
Boolean |
获取该评论是否已由其中一份答复加以解决。 |
set(String fieldName, Object value) 设置自定义属性及属性值。 |
|
setId(String id) 设置评论ID。 |
|
setCategory(String category) 设置资源类型的标识。 |
|
setCreatedTime(DateTime createdTime) 设置评论创建时间。 |
|
setCreator(User creator) 设置创建评论的用户信息。 |
|
setDeleted(Boolean deleted) 设置评论是否已删除。 |
|
setDescription(String description) 设置评论内容。 |
|
setEditedTime(DateTime editedTime) 设置评论的最近一次修改时间。 |
|
setHtmlDescription(String htmlDescription) 设置html格式的评论内容。 |
|
setPosition(String position) 设置以JSON字符串表示的文档的区域。 |
|
setQuotedContent(Comment.QuotedContent quotedContent) 设置评论所指的文件内容。 |
|
setReplies(List<Reply> replies) 设置评论的所有回复。 |
|
setResolved(Boolean resolved) 设置该评论是否已由其中一份答复加以解决。 |
Method |
|---|
public String getPosition() 获取以JSON字符串表示的文档的区域。 |
Returns
Type |
Description |
|---|---|
String |
返回以JSON字符串表示的文档的区域。 |
Method |
|---|
public Comment setPosition(String position) 设置以JSON字符串表示的文档的区域。 |
Parameters
Name |
Description |
|---|---|
position |
以JSON字符串表示的文档的区域。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public User getCreator() 获取创建评论的用户信息。 |
Returns
Type |
Description |
|---|---|
User |
创建评论的用户信息。 |
Method |
|---|
public Comment setCreator(User creator) 设置创建评论的用户信息。 |
Parameters
Name |
Description |
|---|---|
creator |
创建评论的用户信息。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public String getDescription() 获取评论内容。 |
Returns
Type |
Description |
|---|---|
String |
评论内容。 |
Method |
|---|
public Comment setDescription(String description) 设置评论内容。 |
Parameters
Name |
Description |
|---|---|
description |
评论内容。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public DateTime getCreatedTime() 获取评论创建时间。 |
Returns
Type |
Description |
|---|---|
DateTime |
评论创建时间。 |
Method |
|---|
public Comment setCreatedTime(DateTime createdTime) 设置评论创建时间。 |
Parameters
Name |
Description |
|---|---|
createdTime |
评论创建时间。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public Boolean getDeleted() 获取评论是否已删除。 |
Returns
Type |
Description |
|---|---|
Boolean |
评论是否已删除。 |
Method |
|---|
public Comment setDeleted(Boolean deleted) 设置评论是否已删除。 |
Parameters
Name |
Description |
|---|---|
deleted |
评论是否已删除。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public String getHtmlDescription() 获取html格式的评论内容。 |
Returns
Type |
Description |
|---|---|
String |
html格式的评论内容。 |
Method |
|---|
public Comment setHtmlDescription(String htmlDescription) 设置html格式的评论内容。 |
Parameters
Name |
Description |
|---|---|
htmlDescription |
html格式的评论内容。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public List<Reply> getReplies() 获取评论的所有回复。 |
Returns
Type |
Description |
|---|---|
List<Reply> |
评论的所有回复。 |
Method |
|---|
public Comment setReplies(List<Reply> replies) 设置评论的所有回复。 |
Parameters
Name |
Description |
|---|---|
replies |
评论的所有回复。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public Comment setId(String id) 设置评论ID。 |
Parameters
Name |
Description |
|---|---|
id |
评论ID。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public String getCategory() 获取资源类型的标识。 |
Returns
Type |
Description |
|---|---|
String |
资源类型的标识。 |
Method |
|---|
public Comment setCategory(String category) 设置资源类型的标识。 |
Parameters
Name |
Description |
|---|---|
category |
资源类型的标识。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public DateTime getEditedTime() 获取评论的最近一次修改时间。 |
Returns
Type |
Description |
|---|---|
DateTime |
评论的最近一次修改时间。 |
Method |
|---|
public Comment setEditedTime(DateTime editedTime) 设置评论的最近一次修改时间。 |
Parameters
Name |
Description |
|---|---|
editedTime |
评论的最近一次修改时间。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public Comment.QuotedContent getQuotedContent() 获取评论所指的文件内容。 |
Returns
Type |
Description |
|---|---|
Comment.QuotedContent |
评论所指的文件内容。 |
Method |
|---|
public Comment setQuotedContent(Comment.QuotedContent quotedContent) 设置评论所指的文件内容。 |
Parameters
Name |
Description |
|---|---|
quotedContent |
评论所指的文件内容。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |
Method |
|---|
public Boolean getResolved() 获取该评论是否已由其中一份答复加以解决。 |
Returns
Type |
Description |
|---|---|
Boolean |
该评论是否已由其中一份答复加以解决。 |
Method |
|---|
public Comment setResolved(Boolean resolved) 设置该评论是否已由其中一份答复加以解决。 |
Parameters
Name |
Description |
|---|---|
resolved |
该评论是否已由其中一份答复加以解决。 |
Returns
Type |
Description |
|---|---|
Comment |
返回一个Comment对象。 |