We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Comment

Expand

Class Info

public final class Comment extends GenericJson

File comment model class.

Public Constructor Summary

Expand

Constructor Name

Comment()

Constructs a Comment object.

Public Method Summary

Expand

Qualifier and Type

Method Name and Description

String

getPosition()

Obtains a file position in JSON format.

Comment

setPosition(String position)

Sets a file position in JSON format.

User

getCreator()

Obtains information about the user who creates a comment.

Comment

setCreator(User creator)

Sets information about the user who creates a comment.

String

getDescription()

Obtains a comment.

Comment

setDescription(String description)

Sets a comment.

com.huawei.cloud.base.util.DateTime

getCreatedTime()

Obtains comment creation time.

Comment

setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime)

Sets comment creation time.

Boolean

getDeleted()

Checks whether a comment is deleted.

Comment

setDeleted(Boolean deleted)

Sets whether a comment is deleted.

String

getHtmlDescription()

Obtains a comment in HTML format.

Comment

setHtmlDescription(String htmlDescription)

Sets a comment in HTML format.

List<Reply>

getReplies()

Obtains all replies to a comment.

Comment

setReplies(List<Reply> replies)

Sets all replies to a comment.

String

getId()

Obtains a comment ID.

Comment

setId(String id)

Sets a comment ID.

String

getCategory()

Obtains the resource type.

Comment

setCategory(String category)

Sets the resource type.

com.huawei.cloud.base.util.DateTime

getEditedTime()

Obtains the last modification time of a comment.

Comment

setEditedTime(com.huawei.cloud.base.util.DateTime editedTime)

Sets the last modification time of a comment.

Comment.QuotedContent

getQuotedContent()

Obtains the content of a commented file.

Comment

setQuotedContent(Comment.QuotedContent quotedContent)

Sets the content of a commented file.

Boolean

getResolved()

Checks whether a comment is resolved by one of its replies.

Comment

setResolved(Boolean resolved)

Sets whether a comment is resolved by one of its replies.

Comment

set(String fieldName, Object value)

Sets a custom attribute and its value.

Comment

clone()

Clones a Comment object.

Public Constructors

Comment

Expand

Constructor

Comment()

Constructs a Comment object.

Public Methods

getPosition

Expand

Method

public String getPosition()

Obtains a file position in JSON format.

Returns

Expand

Type

Description

String

File position in JSON format.

setPosition

Expand

Method

public Comment setPosition(String position)

Sets a file position in JSON format.

Parameters

Expand

Name

Description

position

File position in JSON format.

Returns

Expand

Type

Description

Comment

A Comment object.

getCreator

Expand

Method

public User getCreator()

Obtains information about the user who creates a comment.

Returns

Expand

Type

Description

User

Information about the user who creates a comment.

setCreator

Expand

Method

public Comment setCreator(User creator)

Sets information about the user who creates a comment.

Parameters

Expand

Name

Description

creator

Information about the user who creates a comment.

Returns

Expand

Type

Description

Comment

A Comment object.

getDescription

Expand

Method

public String getDescription()

Obtains a comment.

Returns

Expand

Type

Description

String

Comment content.

setDescription

Expand

Method

public Comment setDescription(String description)

Sets a comment.

Parameters

Expand

Name

Description

description

Comment content.

Returns

Expand

Type

Description

Comment

A Comment object.

getCreatedTime

Expand

Method

public com.huawei.cloud.base.util.DateTime getCreatedTime()

Obtains comment creation time.

Returns

Expand

Type

Description

com.huawei.cloud.base.util.DateTime

Time when the comment is created.

setCreatedTime

Expand

Method

public Comment setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime)

Sets comment creation time.

Parameters

Expand

Name

Description

createdTime

Time when the comment is created.

Returns

Expand

Type

Description

Comment

A Comment object.

getDeleted

Expand

Method

public Boolean getDeleted()

Checks whether a comment is deleted.

Returns

Expand

Type

Description

Boolean

Whether a comment is deleted.

setDeleted

Expand

Method

public Comment setDeleted(Boolean deleted)

Sets whether a comment is deleted.

Parameters

Expand

Name

Description

deleted

Whether the comment is deleted.

Returns

Expand

Type

Description

Comment

A Comment object.

getHtmlDescription

Expand

Method

public String getHtmlDescription()

Obtains a comment in HTML format.

Returns

Expand

Type

Description

String

Comment in HTML format.

setHtmlDescription

Expand

Method

public Comment setHtmlDescription(String htmlDescription)

Sets a comment in HTML format.

Parameters

Expand

Name

Description

htmlDescription

Comment in HTML format.

Returns

Expand

Type

Description

Comment

A Comment object.

getReplies

Expand

Method

public List<Reply> getReplies()

Obtains all replies to a comment.

Returns

Expand

Type

Description

List<Reply>

All replies to a comment.

setReplies

Expand

Method

public Comment setReplies(List<Reply> replies)

Sets all replies to a comment.

Parameters

Expand

Name

Description

replies

All replies to a comment.

Returns

Expand

Type

Description

Comment

A Comment object.

getId

Expand

Method

public String getId()

Obtains a comment ID.

Returns

Expand

Type

Description

String

Comment ID.

setId

Expand

Method

public Comment setId(String id)

Sets a comment ID.

Parameters

Expand

Name

Description

id

Comment ID.

Returns

Expand

Type

Description

Comment

A Comment object.

getCategory

Expand

Method

public String getCategory()

Obtains the resource type.

Returns

Expand

Type

Description

String

Resource type.

setCategory

Expand

Method

public Comment setCategory(String category)

Sets the resource type.

Parameters

Expand

Name

Description

category

Resource type.

Returns

Expand

Type

Description

Comment

A Comment object.

getEditedTime

Expand

Method

public com.huawei.cloud.base.util.DateTime getEditedTime()

Obtains the last modification time of a comment.

Returns

Expand

Type

Description

com.huawei.cloud.base.util.DateTime

Last modification time of a comment.

setEditedTime

Expand

Method

public Comment setEditedTime(com.huawei.cloud.base.util.DateTime editedTime)

Sets the last modification time of a comment.

Parameters

Expand

Name

Description

editedTime

Last modification time of a comment.

Returns

Expand

Type

Description

Comment

A Comment object.

getQuotedContent

Expand

Method

public Comment.QuotedContent getQuotedContent()

Obtains the content of a commented file.

Returns

Expand

Type

Description

Comment.QuotedContent

Content of a commented file.

setQuotedContent

Expand

Method

public Comment setQuotedContent(Comment.QuotedContent quotedContent)

Sets the content of a commented file.

Parameters

Expand

Name

Description

quotedContent

Content of a commented file.

Returns

Expand

Type

Description

Comment

A Comment object.

getResolved

Expand

Method

public Boolean getResolved()

Checks whether a comment is resolved by one of its replies.

Returns

Expand

Type

Description

Boolean

Whether a comment is resolved by one of its replies.

setResolved

Expand

Method

public Comment setResolved(Boolean resolved)

Sets whether a comment is resolved by one of its replies.

Parameters

Expand

Name

Description

resolved

Whether a comment is resolved by one of its replies.

Returns

Expand

Type

Description

Comment

A Comment object.

set

Expand

Method

public Comment set(String fieldName, Object value)

Sets the field name and field value.

Parameters

Expand

Name

Description

fieldname

Field name.

value

Field value.

Returns

Expand

Type

Description

Comment

A Comment object.

clone

Expand

Method

public Comment clone()

Clones a Comment object.

Returns

Expand

Type

Description

Comment

A Comment object.

Search
Enter a keyword.