public class AssetFeedback extends AssetPropertyBase
| Modifier and Type | Field and Description |
|---|---|
protected AssetComments |
comments |
protected AssetInformalTags |
informalTags |
protected AssetLikes |
likes |
protected AssetRatings |
ratings |
parentAsset| Modifier | Constructor and Description |
|---|---|
protected |
AssetFeedback(AssetDescriptor parentAsset)
Simple constructor only for subclasses
|
|
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.
|
|
AssetFeedback(AssetDescriptor parentAsset,
AssetInformalTags informalTags,
AssetLikes likes,
AssetRatings ratings,
AssetComments comments)
Typical Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
AssetComments |
getComments()
Returns a copy of the comments for the asset in an iterator.
|
AssetInformalTags |
getInformalTags()
Returns a copy of the information tags for the asset in an iterator.
|
AssetLikes |
getLikes()
Returns a copy of the likes for the asset in an iterator.
|
AssetRatings |
getRatings()
Returns a copy of the ratings for the asset in an iterator.
|
int |
hashCode()
Hash of properties
|
String |
toString()
Standard toString method.
|
getParentAsset, getParentAssetName, getParentAssetTypeNameprotected AssetInformalTags informalTags
protected AssetLikes likes
protected AssetRatings ratings
protected AssetComments comments
protected AssetFeedback(AssetDescriptor parentAsset)
parentAsset - linked assetpublic AssetFeedback(AssetDescriptor parentAsset, AssetInformalTags informalTags, AssetLikes likes, AssetRatings ratings, AssetComments comments)
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.public AssetFeedback(AssetDescriptor parentAsset, AssetFeedback templateFeedback)
parentAsset - description of the asset that this feedback is attached to.templateFeedback - template object to copy.public AssetInformalTags getInformalTags()
public AssetLikes getLikes()
public AssetRatings getRatings()
public AssetComments getComments()
public String toString()
public boolean equals(Object objectToCompare)
equals in class AssetPropertyBaseobjectToCompare - supplied objectpublic int hashCode()
hashCode in class AssetPropertyBaseCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.