Class AssetFeedback

    • Constructor Detail

      • AssetFeedback

        protected AssetFeedback​(AssetDescriptor parentAsset)
        Simple constructor only for subclasses
        Parameters:
        parentAsset - linked asset
      • AssetFeedback

        public AssetFeedback​(AssetDescriptor parentAsset,
                             AssetInformalTags informalTags,
                             AssetLikes likes,
                             AssetRatings ratings,
                             AssetComments comments)
        Typical Constructor
        Parameters:
        parentAsset - description of the asset that this feedback is attached to.
        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​(AssetDescriptor parentAsset,
                             AssetFeedback templateFeedback)
        Copy/clone constructor the parentAsset is passed separately to the template because it is also likely to be being cloned in the same operation and we want the feedback clone to point to the asset clone and not the original asset.
        Parameters:
        parentAsset - description of the asset that this feedback is attached to.
        templateFeedback - template object to copy.
    • Method Detail

      • getInformalTags

        public AssetInformalTags 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 AssetLikes 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 AssetRatings 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 AssetComments 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 AssetPropertyBase
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison