Class CommentProperties
java.lang.Object
org.odpi.openmetadata.viewservices.feedbackmanager.properties.ReferenceableProperties
org.odpi.openmetadata.viewservices.feedbackmanager.properties.CommentProperties
The CommentProperties bean stores information about a comment connected to an asset. Comments provide informal feedback to assets
and can be added at any time.
Comments have the userId of the person who added the feedback, along with their comment text.
The content of the comment is a personal statement (which is why the user's id is in the comment)
and there is no formal review of the content.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCommentProperties(CommentProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the comment text.org.odpi.openmetadata.frameworks.openmetadata.enums.CommentTypeReturn an enum that describes the type of comment.inthashCode()Create a hash code for this element type.voidsetCommentText(String commentText) Set up the comment text.voidsetCommentType(org.odpi.openmetadata.frameworks.openmetadata.enums.CommentType commentType) Set up the enum that describes the type of comment.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.viewservices.feedbackmanager.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
Constructor Details
-
CommentProperties
public CommentProperties()Default constructor -
CommentProperties
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Details
-
getCommentType
public org.odpi.openmetadata.frameworks.openmetadata.enums.CommentType getCommentType()Return an enum that describes the type of comment.- Returns:
- CommentType enum
-
setCommentType
public void setCommentType(org.odpi.openmetadata.frameworks.openmetadata.enums.CommentType commentType) Set up the enum that describes the type of comment.- Parameters:
commentType- CommentType enum
-
getCommentText
Return the comment text.- Returns:
- String commentText
-
setCommentText
Set up the comment text.- Parameters:
commentText- String text
-
toString
Standard toString method.- Overrides:
toStringin classReferenceableProperties- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCodein classReferenceableProperties- Returns:
- int hash code
-