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

public class FeedbackRequestBody extends OCFOMASAPIRequestBody
FeedbackRequestBody provides a base class for passing feedback objects as a request body over a REST API.
  • Constructor Details

    • FeedbackRequestBody

      public FeedbackRequestBody()
      Default constructor
    • FeedbackRequestBody

      public FeedbackRequestBody(FeedbackRequestBody template)
      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

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class OCFOMASAPIRequestBody
      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:
      equals in class Object
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class Object
      Returns:
      int hash code