public class Rating extends ElementHeader
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPublic |
protected String |
review |
protected StarRating |
starRating |
protected String |
user |
classifications, extendedProperties, guid, type, url| Constructor and Description |
|---|
Rating()
Default constructor
|
Rating(Rating template)
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.
|
boolean |
isPublic()
Return if this rating is private ot the creating user.
|
void |
setPublic(boolean aPublic)
Set up whether the rating is private to the creating user or not.
|
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, getExtendedProperties, getGUID, getType, getURL, hashCode, setClassifications, setExtendedProperties, setGUID, setType, setURLprotected StarRating starRating
protected String review
protected String user
protected boolean isPublic
public Rating()
public Rating(Rating template)
template - 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 boolean isPublic()
public void setPublic(boolean aPublic)
aPublic - booleanpublic String toString()
toString in class ElementHeaderpublic boolean equals(Object objectToCompare)
equals in class ElementHeaderobjectToCompare - supplied objectCopyright © 2018–2020 ODPi. All rights reserved.