Class AssetFeedback
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
org.odpi.openmetadata.frameworks.connectors.properties.AssetFeedback
- Direct Known Subclasses:
ConnectedFeedback
Feedback contains the comments, tags, ratings and likes that consumers of the asset have created.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Comments
protected InformalTags
protected Likes
protected Ratings
-
Constructor Summary
ModifierConstructorDescriptionprotected
Simple constructor only for subclassesAssetFeedback
(AssetFeedback templateFeedback) Copy/clone constructor.AssetFeedback
(InformalTags informalTags, Likes likes, Ratings ratings, Comments comments) Typical Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Returns a copy of the comments for the asset in an iterator.Returns a copy of the information tags for the asset in an iterator.getLikes()
Returns a copy of the likes for the asset in an iterator.Returns a copy of the ratings for the asset in an iterator.int
hashCode()
Hash of propertiestoString()
Standard toString method.
-
Field Details
-
informalTags
-
likes
-
ratings
-
comments
-
-
Constructor Details
-
AssetFeedback
protected AssetFeedback()Simple constructor only for subclasses -
AssetFeedback
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
Copy/clone constructor.- Parameters:
templateFeedback
- template object to copy.
-
-
Method Details
-
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
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
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
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
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classAssetPropertyElementBase
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classAssetPropertyElementBase
- Returns:
- int
-