java.lang.Object
com.tectonica.jonix.onix3.RatingUnits
- All Implemented Interfaces:
OnixElement<String>
,OnixTag
,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) |
Product
⯈ContentDetail
⯈ContentItem
⯈TextContent
⯈ReviewRating
⯈RatingUnits
Product
⯈CollateralDetail
⯈TextContent
⯈ReviewRating
⯈RatingUnits
Product
⯈ContentDetail
⯈ContentItem
⯈CitedContent
⯈ReviewRating
⯈RatingUnits
Product
⯈CollateralDetail
⯈CitedContent
⯈ReviewRating
⯈RatingUnits
- Since:
- Onix-3.03
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(type: dt.DateOrDateTime)static final RatingUnits
static final String
static final String
(type: dt.NonEmptyString)This is the raw content of RatingUnits. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__v()
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field insteadboolean
exists()
indicates whether this tag exists in the ONIX recordvoid
ifExists
(Consumer<RatingUnits> action) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tectonica.jonix.common.OnixElement
equal, is, isNull, value
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
language
-
value
This is the raw content of RatingUnits. Could be null ifexists() == false
. UseOnixElement.value()
instead if you want to get this as anOptional
.Raw Format: Variable length text, suggested maximum length 50 characters
(type: dt.NonEmptyString)
-
EMPTY
-
-
Constructor Details
-
RatingUnits
public RatingUnits() -
RatingUnits
-
-
Method Details
-
__v
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field instead- Specified by:
__v
in interfaceOnixElement<String>
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-