public class CommentProperties extends ReferenceableProperties
| Constructor and Description |
|---|
CommentProperties()
Default constructor
|
CommentProperties(CommentProperties template)
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.
|
boolean |
getIsPublic()
Return whether the comment is private to the creating user or not.
|
String |
getUser()
Return the user id of the person who created the comment.
|
int |
hashCode()
Create a hash code for this element type.
|
void |
setCommentText(String commentText)
Set up the comment text.
|
void |
setCommentType(CommentType commentType)
Set up the enum that describes the type of comment.
|
void |
setIsPublic(boolean isPublic)
Set up whether the comment is private to the creating user or not.
|
void |
setUser(String user)
Set up the user id of the person who created the comment.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getExtendedProperties, getQualifiedName, getTypeName, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTypeNamepublic CommentProperties()
public CommentProperties(CommentProperties template)
template - 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 boolean getIsPublic()
public void setIsPublic(boolean isPublic)
isPublic - booleanpublic String toString()
toString in class ReferenceablePropertiespublic boolean equals(Object objectToCompare)
equals in class ReferenceablePropertiesobjectToCompare - supplied objectpublic int hashCode()
hashCode in class ReferenceablePropertiesCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.