Class CommentRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.FeedbackRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.CommentRequestBody
CommentRequestBody provides a structure for passing a comment as a request body over a REST API.
-
Constructor Summary
ConstructorDescriptionDefault constructorCommentRequestBody
(CommentRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the comment content.Return the type of comment.int
hashCode()
Return hash code for this objectvoid
setCommentText
(String commentText) Set up the comment content.void
setCommentType
(CommentType commentType) Set up the type of comment.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.FeedbackRequestBody
isPublic, setPublic
-
Constructor Details
-
CommentRequestBody
public CommentRequestBody()Default constructor -
CommentRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getCommentType
Return the type of comment.- Returns:
- string
-
setCommentType
Set up the type of comment.- Parameters:
commentType
- string
-
getCommentText
Return the comment content.- Returns:
- string description
-
setCommentText
Set up the comment content.- Parameters:
commentText
- text.
-
toString
JSON-style toString.- Overrides:
toString
in classFeedbackRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classFeedbackRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classFeedbackRequestBody
- Returns:
- int hash code
-