public class AssetRating extends AssetElementHeader
| Modifier and Type | Field and Description |
|---|---|
protected Rating |
ratingBean |
parentAsset| Constructor and Description |
|---|
AssetRating(AssetDescriptor parentAsset,
AssetRating templateRating)
Copy/clone constructor.
|
AssetRating(AssetDescriptor parentAsset,
Rating ratingBean)
Bean constructor with parent asset
|
AssetRating(Rating ratingBean)
Bean 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.
|
protected Rating |
getRatingBean()
Return the bean with all of the properties.
|
String |
getReview()
Return the review comments - null means no review is available.
|
StarRating |
getStarRating()
Return the stars for the rating.
|
String |
getUser()
Return the user id of the person who created the rating.
|
int |
hashCode()
Hash of properties
|
boolean |
isPublic()
Return if this rating is private to the creating user.
|
String |
toString()
Standard toString method.
|
getAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, setBeangetParentAsset, getParentAssetName, getParentAssetTypeNameprotected Rating ratingBean
public AssetRating(Rating ratingBean)
ratingBean - bean containing all of the propertiespublic AssetRating(AssetDescriptor parentAsset, Rating ratingBean)
parentAsset - descriptor for parent assetratingBean - bean containing all of the propertiespublic AssetRating(AssetDescriptor parentAsset, AssetRating templateRating)
parentAsset - descriptor for parent assettemplateRating - element to copyprotected Rating getRatingBean()
public boolean isPublic()
public String getUser()
public StarRating getStarRating()
public String getReview()
public String toString()
toString in class AssetElementHeaderpublic boolean equals(Object objectToCompare)
equals in class AssetElementHeaderobjectToCompare - supplied objectpublic int hashCode()
hashCode in class AssetElementHeaderCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.