public final class DocComment extends Object implements com.aspose.ms.System.IEquatable<DocComment>
Represents comment in DocFormat
.
Constructor and Description |
---|
DocComment()
Initializes a new instance of the
DocComment class. |
DocComment(int id,
String author,
String initials,
String text,
Date createdDate)
Initializes a new instance of the
DocComment class. |
DocComment(String author,
String initials,
Date createdDate)
Initializes a new instance of the
DocComment class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(DocComment other)
Indicates whether the current object is equal to another object of the same type.
|
boolean |
equals(Object obj)
Determines whether the specified
System.Object is equal to this instance. |
String |
getAuthor()
Gets or sets the author.
|
Date |
getCreatedDate()
Gets or sets comment's created date.
|
int |
getId()
Gets or sets comment's id.
|
String |
getInitials()
Gets or sets author's initials.
|
String |
getText()
Gets or comment's text.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setAuthor(String value)
Gets or sets the author.
|
void |
setCreatedDate(Date value)
Gets or sets comment's created date.
|
void |
setId(int value)
Gets or sets comment's id.
|
void |
setInitials(String value)
Gets or sets author's initials.
|
void |
setText(String value)
Gets or comment's text.
|
public DocComment()
Initializes a new instance of the DocComment
class.
public DocComment(String author, String initials, Date createdDate)
Initializes a new instance of the DocComment
class.
author
- Comment's author.initials
- Comment's initials.createdDate
- Comment's created date.public DocComment(int id, String author, String initials, String text, Date createdDate)
Initializes a new instance of the DocComment
class.
id
- Comment's id. Use this identifier for updating/delete specific comment.author
- Comment's author.initials
- Comment's initials.text
- Comment's text.createdDate
- Comment's created date.public final int getId()
Gets or sets comment's id. Use this identifier to update or remove comment.
Value: The identifier.public final void setId(int value)
Gets or sets comment's id. Use this identifier to update or remove comment.
Value: The identifier.public final String getAuthor()
Gets or sets the author.
Value: The author.public final void setAuthor(String value)
Gets or sets the author.
Value: The author.public final String getInitials()
Gets or sets author's initials.
Value: The initials of the author.public final void setInitials(String value)
Gets or sets author's initials.
Value: The initials of the author.public final String getText()
Gets or comment's text.
Value: The text.public final void setText(String value)
Gets or comment's text.
Value: The text.public final Date getCreatedDate()
Gets or sets comment's created date.
Value: The created date.public final void setCreatedDate(Date value)
Gets or sets comment's created date.
Value: The created date.public final boolean equals(DocComment other)
Indicates whether the current object is equal to another object of the same type.
other
- An object to compare with this object.true
if the current object is equal to the other
parameter; otherwise, false.public boolean equals(Object obj)
Determines whether the specified System.Object
is equal to this instance.
equals
in interface com.aspose.ms.System.IEquatable<DocComment>
equals
in class Object
obj
- The System.Object
to compare with this instance.true
if the specified System.Object
is equal to this instance; otherwise, false
.Copyright © 2017. All rights reserved.