Class AssetFeedback
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetFeedback
-
- All Implemented Interfaces:
Serializable
public class AssetFeedback extends AssetPropertyElementBase
Feedback contains the comments, tags, ratings and likes that consumers of the asset have created.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Commentscommentsprotected InformalTagsinformalTagsprotected Likeslikesprotected Ratingsratings
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssetFeedback()Simple constructor only for subclassesAssetFeedback(AssetFeedback templateFeedback)Copy/clone constructor.AssetFeedback(InformalTags informalTags, Likes likes, Ratings ratings, Comments comments)Typical Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.CommentsgetComments()Returns a copy of the comments for the asset in an iterator.InformalTagsgetInformalTags()Returns a copy of the information tags for the asset in an iterator.LikesgetLikes()Returns a copy of the likes for the asset in an iterator.RatingsgetRatings()Returns a copy of the ratings for the asset in an iterator.inthashCode()Hash of propertiesStringtoString()Standard toString method.
-
-
-
Field Detail
-
informalTags
protected InformalTags informalTags
-
likes
protected Likes likes
-
ratings
protected Ratings ratings
-
comments
protected Comments comments
-
-
Constructor Detail
-
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 Detail
-
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.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAssetPropertyElementBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetPropertyElementBase- Returns:
- int
-
-