public class Review extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Review.Aspect
Represents an certain aspect of a review such as "quality" or "service".
|
| Modifier | Constructor and Description |
|---|---|
protected |
Review() |
| Modifier and Type | Method and Description |
|---|---|
protected Review |
addAspect(Review.Aspect aspect)
Adds an
Review.Aspect to the review. |
protected Review |
addAspects(Collection<Review.Aspect> aspects)
Adds a collection of aspects to the review.
|
protected List<Review.Aspect> |
getAspects()
Returns all aspects of the review.
|
String |
getAuthor()
Returns the author of the review.
|
String |
getAuthorUrl()
Returns the url associated with the author.
|
String |
getLanguage()
Returns the language the review is in.
|
int |
getRating()
Returns the rating of this review between 0 and 5.
|
String |
getText()
Returns the content of this review.
|
long |
getTime()
Returns the unix-time stamp that the review was posted on.
|
protected Review |
removeAspect(Review.Aspect aspect)
Removes the specified aspect from the review.
|
protected Review |
setAuthor(String author)
Sets the author of the review.
|
protected Review |
setAuthorUrl(String authorUrl)
Sets the author's url.
|
protected Review |
setLanguage(String lang)
Sets the language the review is in.
|
protected Review |
setRating(int rating)
Sets the rating of this review.
|
protected Review |
setText(String text)
Sets the content of this review.
|
protected Review |
setTime(long time)
Sets the unix-time stamp the review was posted on.
|
public String getAuthor()
protected Review setAuthor(String author)
author - of reviewpublic String getAuthorUrl()
protected Review setAuthorUrl(String authorUrl)
authorUrl - to setpublic String getLanguage()
protected Review setLanguage(String lang)
lang - language of reviewpublic String getText()
protected Review setText(String text)
text - content of reviewpublic int getRating()
protected Review setRating(int rating)
rating - of reviewpublic long getTime()
protected Review setTime(long time)
time - unix timestampprotected Review addAspects(Collection<Review.Aspect> aspects)
aspects - to add to reviewprotected Review addAspect(Review.Aspect aspect)
Review.Aspect to the review.aspect - to addprotected Review removeAspect(Review.Aspect aspect)
aspect - to removeprotected List<Review.Aspect> getAspects()
Copyright © 2014–2015. All rights reserved.