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.
|
String |
toString()
Standard toString method.
|
getAssetClassifications, getElementHeaderBean, getGUID, getType, getURL, hashCodegetParentAsset, 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 String getUser()
public StarRating getStarRating()
public String getReview()
public String toString()
toString in class AssetElementHeaderpublic boolean equals(Object objectToCompare)
equals in class AssetElementHeaderobjectToCompare - supplied objectCopyright © 2018 ODPi. All rights reserved.