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
ConstructorsConstructorDescriptionDefault constructorFeedbackRequestBody(FeedbackRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.inthashCode()Return hash code for this objectbooleanisPublic()Return whether the feedback is private or notvoidsetPublic(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:
toStringin 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
-