Module jonix.onix3

Class RatingUnits

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

public class RatingUnits extends Object implements OnixElement<String>, Serializable

Review rating units

The ‘units’ used by a rating, eg stars, tomatoes etc. Optional, and repeatable to provide the units in multiple languages. The language attribute is optional for a single instance of <RatingUnits>, but must be included in each instance if <RatingUnits> is repeated.

Format Variable length text, suggested maximum length 50 characters
Reference name <RatingUnits>
Short tag <x527>
Cardinality 0…n
Attributes language
Example <RatingUnits>stars</RatingUnits> (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
    • language

      public Languages language
    • value

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

      Raw Format: Variable length text, suggested maximum length 50 characters

      (type: dt.NonEmptyString)

    • EMPTY

      public static final RatingUnits EMPTY
  • Constructor Details

    • RatingUnits

      public RatingUnits()
    • RatingUnits

      public RatingUnits(Element element)
  • Method Details