Class AssetFeedback
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetFeedback
-
- All Implemented Interfaces:
Serializable
public class AssetFeedback extends AssetPropertyBase
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 AssetCommentscommentsprotected AssetInformalTagsinformalTagsprotected AssetLikeslikesprotected AssetRatingsratings-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssetFeedback(AssetDescriptor parentAsset)Simple constructor only for subclassesAssetFeedback(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.AssetFeedback(AssetDescriptor parentAsset, AssetInformalTags informalTags, AssetLikes likes, AssetRatings ratings, AssetComments 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.AssetCommentsgetComments()Returns a copy of the comments for the asset in an iterator.AssetInformalTagsgetInformalTags()Returns a copy of the information tags for the asset in an iterator.AssetLikesgetLikes()Returns a copy of the likes for the asset in an iterator.AssetRatingsgetRatings()Returns a copy of the ratings for the asset in an iterator.inthashCode()Hash of propertiesStringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
informalTags
protected AssetInformalTags informalTags
-
likes
protected AssetLikes likes
-
ratings
protected AssetRatings ratings
-
comments
protected AssetComments comments
-
-
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.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAssetPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetPropertyBase- Returns:
- int
-
-