Class FeedbackRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.FeedbackRequestBody
- Direct Known Subclasses:
CommentRequestBody
,RatingRequestBody
,TagRequestBody
FeedbackRequestBody provides a base class for passing feedback objects as a request body over a REST API.
-
Constructor Summary
ConstructorDescriptionDefault constructorFeedbackRequestBody
(FeedbackRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.int
hashCode()
Return hash code for this objectboolean
isPublic()
Return whether the feedback is private or notvoid
setPublic
(boolean aPrivate) Set up the privacy flag.toString()
JSON-style toString.
-
Constructor Details
-
FeedbackRequestBody
public FeedbackRequestBody()Default constructor -
FeedbackRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
isPublic
public boolean isPublic()Return whether the feedback is private or not- Returns:
- boolean
-
setPublic
public void setPublic(boolean aPrivate) Set up the privacy flag.- Parameters:
aPrivate
- boolean
-
toString
JSON-style toString.- Overrides:
toString
in classOCFOMASAPIRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Return hash code for this object
-