Module jonix.onix3

Class Rating

java.lang.Object
com.tectonica.jonix.onix3.Rating
All Implemented Interfaces:
OnixElement<Double>, OnixTag, Serializable

public class Rating extends Object implements OnixElement<Double>, Serializable

Review rating

The ‘star rating’ awarded as part of a review of the publication. Mandatory within an occurrence of the <ReviewRating> composite, and non-repeating.

Format Positive real number, with explicit decimal point when required, or zero, as appropriate for the limit specified in <RatingLimit>. Suggested maximum length 7 characters
Reference name <Rating>
Short tag <x525>
Cardinality 1
Example <Rating>4.5</Rating> (4.5 out of 5 stars)

This tag may be included in the following composites:

Possible placements within ONIX message:

Since:
Onix-3.03
See Also:
  • Field Details

    • refname

      public static final String refname
      See Also:
    • shortname

      public static final String shortname
      See Also:
    • datestamp

      public String datestamp
      (type: dt.DateOrDateTime)
    • sourcename

      public String sourcename
      (type: dt.NonEmptyString)
    • sourcetype

      public RecordSourceTypes sourcetype
    • value

      public Double value
      This is the raw content of Rating. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: Positive real number, with explicit decimal point when required, or zero, as appropriate for the limit specified in <RatingLimit>. Suggested maximum length 7 characters

      (type: dt.PositiveDecimalOrZero)

    • EMPTY

      public static final Rating EMPTY
  • Constructor Details

    • Rating

      public Rating()
    • Rating

      public Rating(Element element)
  • Method Details