Class CommentRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.FeedbackRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.CommentRequestBody
-
- All Implemented Interfaces:
Serializable
public class CommentRequestBody extends FeedbackRequestBody
CommentRequestBody provides a structure for passing a comment as a request body over a REST API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommentRequestBody()Default constructorCommentRequestBody(CommentRequestBody template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.StringgetCommentText()Return the comment content.CommentTypegetCommentType()Return the type of comment.inthashCode()Return hash code for this objectvoidsetCommentText(String commentText)Set up the comment content.voidsetCommentType(CommentType commentType)Set up the type of comment.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.FeedbackRequestBody
isPublic, setPublic
-
-
-
-
Constructor Detail
-
CommentRequestBody
public CommentRequestBody()
Default constructor
-
CommentRequestBody
public CommentRequestBody(CommentRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getCommentType
public CommentType getCommentType()
Return the type of comment.- Returns:
- string
-
setCommentType
public void setCommentType(CommentType commentType)
Set up the type of comment.- Parameters:
commentType- string
-
getCommentText
public String getCommentText()
Return the comment content.- Returns:
- string description
-
setCommentText
public void setCommentText(String commentText)
Set up the comment content.- Parameters:
commentText- text.
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classFeedbackRequestBody- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classFeedbackRequestBody- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classFeedbackRequestBody- Returns:
- int hash code
-
-