public class Rating extends ElementHeader
| Modifier and Type | Field and Description |
|---|---|
protected String |
review |
protected StarRating |
starRating |
protected String |
user |
classifications, guid, type, url| Constructor and Description |
|---|
Rating()
Default constructor
|
Rating(Rating templateRating)
Copy/clone 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.
|
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.
|
void |
setReview(String review)
Set up the review comments - null means no review is available.
|
void |
setStarRating(StarRating starRating)
Set up the stars for the rating.
|
void |
setUser(String user)
Set up the user id of the person who created the rating.
|
String |
toString()
Standard toString method.
|
getClassifications, getGUID, getType, getURL, hashCode, setClassifications, setGUID, setType, setURLprotected StarRating starRating
protected String review
protected String user
public Rating()
public Rating(Rating templateRating)
templateRating - element to copypublic String getUser()
public void setUser(String user)
user - stringpublic StarRating getStarRating()
public void setStarRating(StarRating starRating)
starRating - StarRating enumpublic String getReview()
public void setReview(String review)
review - String review commentspublic String toString()
toString in class ElementHeaderpublic boolean equals(Object objectToCompare)
equals in class ElementHeaderobjectToCompare - supplied objectCopyright © 2018 ODPi. All rights reserved.