java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
org.odpi.openmetadata.frameworks.connectors.properties.AssetFeedback
Direct Known Subclasses:
ConnectedFeedback

public class AssetFeedback extends AssetPropertyElementBase
Feedback contains the comments, tags, ratings and likes that consumers of the asset have created.
  • Field Details

  • Constructor Details

    • AssetFeedback

      protected AssetFeedback()
      Simple constructor only for subclasses
    • AssetFeedback

      public AssetFeedback(InformalTags informalTags, Likes likes, Ratings ratings, Comments comments)
      Typical Constructor
      Parameters:
      informalTags - list of tags for the asset.
      likes - list of likes (one object per person liking the asset) for the asset.
      ratings - list of ratings that people have given the asset one Rating object for each person's rating.
      comments - list of comments for the asset.
    • AssetFeedback

      public AssetFeedback(AssetFeedback templateFeedback)
      Copy/clone constructor.
      Parameters:
      templateFeedback - template object to copy.
  • Method Details

    • getInformalTags

      public InformalTags getInformalTags()
      Returns a copy of the information tags for the asset in an iterator. This iterator can be used to step through the tags once. Therefore call getInformalTags() for each scan of the asset's tags.
      Returns:
      InformalTags tag list
    • getLikes

      public Likes getLikes()
      Returns a copy of the likes for the asset in an iterator. This iterator can be used to step through the list of like once. Therefore call getLikes() for each scan of the asset's like objects.
      Returns:
      Likes like object list
    • getRatings

      public Ratings getRatings()
      Returns a copy of the ratings for the asset in an iterator. This iterator can be used to step through the ratings once. Therefore call getRatings() for each scan of the asset's ratings.
      Returns:
      Ratings rating list
    • getComments

      public Comments getComments()
      Returns a copy of the comments for the asset in an iterator. This iterator can be used to step through the comments once. Therefore, call getComments() for each scan of the asset's comments.
      Returns:
      Comments comment list
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class AssetPropertyElementBase
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class AssetPropertyElementBase
      Returns:
      int