| java.lang.Object | ||
| ↳ | com.google.gdata.model.Element | |
| ↳ | com.google.gdata.model.gd.Rating | |
Describes a rating.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Rating.Rel | Programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating. | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AVERAGE | Average rating. | ||||||||||
| KEY | The key for this element. | ||||||||||
| MAX | Rating scale's maximum value. | ||||||||||
| MIN | Rating scale's minimum value. | ||||||||||
| NUM_RATERS | Number of ratings taken into account when computing the average value. | ||||||||||
| REL | Programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating. | ||||||||||
| VALUE | Rating value. | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an instance using the default key.
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Subclass constructor, allows subclasses to supply their own element key.
| |||||||||||
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the average rating.
| |||||||||||
Returns the rating scale's maximum value.
| |||||||||||
Returns the rating scale's minimum value.
| |||||||||||
Returns the number of ratings taken into account when computing the average
value.
| |||||||||||
Returns the programmatic value that describes the aspect that's being
rated, if not specified, the rating is an overall rating.
| |||||||||||
Returns the rating value.
| |||||||||||
Returns whether it has the average rating.
| |||||||||||
Returns whether it has the rating scale's maximum value.
| |||||||||||
Returns whether it has the rating scale's minimum value.
| |||||||||||
Returns whether it has the number of ratings taken into account when
computing the average value.
| |||||||||||
Returns whether it has the programmatic value that describes the aspect
that's being rated, if not specified, the rating is an overall rating.
| |||||||||||
Returns whether it has the rating value.
| |||||||||||
Locks this element.
| |||||||||||
Registers the metadata for this element.
| |||||||||||
Sets the average rating.
| |||||||||||
Sets the rating scale's maximum value.
| |||||||||||
Sets the rating scale's minimum value.
| |||||||||||
Sets the number of ratings taken into account when computing the average
value.
| |||||||||||
Sets the programmatic value that describes the aspect that's being rated,
if not specified, the rating is an overall rating.
| |||||||||||
Sets the rating value.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.model.Element
| |||||||||||
From class
java.lang.Object
| |||||||||||
Number of ratings taken into account when computing the average value.
Programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating.
Constructs an instance using the default key.
Subclass constructor, allows subclasses to supply their own element key.
| key |
|---|
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. Will use the given ElementKey as the key
for the element. This constructor is used when adapting from one element
key to another. You cannot call this constructor directly, instead use
createElement(ElementKey, Element).
| key | The key to use for this element. |
|---|---|
| source | Source element |
| obj |
|---|
Returns the average rating.
Returns the rating scale's maximum value.
Returns the rating scale's minimum value.
Returns the number of ratings taken into account when computing the average value.
Returns the programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating.
Returns the rating value.
Returns whether it has the average rating.
Returns whether it has the rating scale's maximum value.
Returns whether it has the rating scale's minimum value.
Returns whether it has the number of ratings taken into account when computing the average value.
Returns whether it has the programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating.
Returns whether it has the rating value.
Locks this element. A locked element cannot have any changes made to its content or its attributes or child elements. This will also lock all attributes and child elements as well. Once this method has been called, this element can be safely published to other threads.
Registers the metadata for this element.
| registry |
|---|
Sets the average rating.
| average | Average rating or null to reset |
|---|
Sets the rating scale's maximum value.
| max | Rating scale's maximum value or null to reset |
|---|
Sets the rating scale's minimum value.
| min | Rating scale's minimum value or null to reset |
|---|
Sets the number of ratings taken into account when computing the average value.
| numRaters | Number of ratings taken into account when computing the
average value or null to reset |
|---|
Sets the programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating.
| rel | Programmatic value that describes the aspect that's being rated,
if not specified, the rating is an overall rating or null to
reset |
|---|
Sets the rating value.
| value | Rating value or null to reset |
|---|