The ParentalRatingCollection class
Support in HbbTV
Available since: HbbTV 1.0 (ETSI TS 102 796 V1.1.1, OIPF DAE V1.1)
The addParentalRating() method shall be supported if the PVR feature is supported and is otherwise not included. All other features of the class shall be supported.
typedef Collection<ParentalRating> ParentalRatingCollection
A ParentalRatingCollection represents a collection of parental rating values. See Annex K for the definition of the collection template.
In addition to the methods and properties defined for generic collections, the ParentalRatingCollection class supports the additional properties and methods defined below.
Methods
void addParentalRating( String scheme, String name, Integer value, Integer labels, String region ) |
Description | Creates a ParentalRating object instance for a given parental rating scheme and parental rating value, and adds it to the ParentalRatingCollection for a programme or channel. |
Arguments | scheme | A unique string identifying the parental rating scheme to which this value refers. See property scheme in section 7.9.4.1 for more information about possible values. |
name | A string representation of the parental rating value. See property name in section 7.9.4.1 for more information about possible values. Values are not case sensitive. |
value | The parental rating value represented as an Integer. See property value in section 7.9.4.1 for more information about possible values. |
labels | A set of content rating labels that may provide additional information about the rating. See property labels in section 7.9.4.1 for more information about possible values. |
region | The region to which the parental rating value applies as an alpha-2 region code as defined in ISO 3166-1. The value of this argument must be null or undefined if no specific region has been identified. Values are not case sensitive. |