public class Comment extends Referenceable
| Modifier and Type | Field and Description |
|---|---|
protected String |
commentText |
protected CommentType |
commentType |
protected String |
user |
additionalProperties, qualifiedNameclassifications, guid, type, url| Constructor and Description |
|---|
Comment()
Default constructor
|
Comment(Comment templateComment)
Copy/clone constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getCommentText()
Return the comment text.
|
CommentType |
getCommentType()
Return an enum that describes the type of comment.
|
String |
getUser()
Return the user id of the person who created the comment.
|
void |
setCommentText(String commentText)
Set up the comment text.
|
void |
setCommentType(CommentType commentType)
Set up the enum that describes the type of comment.
|
void |
setUser(String user)
Set up the user id of the person who created the comment.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedNamegetClassifications, getGUID, getType, getURL, hashCode, setClassifications, setGUID, setType, setURLprotected CommentType commentType
protected String commentText
protected String user
public Comment()
public Comment(Comment templateComment)
templateComment - element to copypublic CommentType getCommentType()
public void setCommentType(CommentType commentType)
commentType - CommentType enumpublic String getCommentText()
public void setCommentText(String commentText)
commentText - String textpublic String getUser()
public void setUser(String user)
user - String commenting userpublic String toString()
toString in class Referenceablepublic boolean equals(Object objectToCompare)
equals in class ReferenceableobjectToCompare - supplied objectCopyright © 2018 ODPi. All rights reserved.