Class Rating

  • All Implemented Interfaces:
    Serializable

    public class Rating
    extends AbstractSchemeValue
    <media:rating>

    This allows the permissible audience to be declared. If this element is not included, it assumes that no restrictions are necessary. It has one optional attribute.

     <media:rating scheme="urn:simple">adult</media:rating>
                   <media:rating scheme="urn:icra">r (cz 1 lz 1 nz 1 oz 1 vz 1)</media:rating>
                   <media:rating scheme="urn:mpaa">pg</media:rating>
    
                   <media:rating scheme="urn:v-chip">tv-y7-fv</media:rating>
     

    scheme is the URI that identifies the rating scheme. It is an optional attribute. If this attribute is not included, the default scheme is urn:simple (adult | nonadult).

    For compatibility, a medai:adult tag will appear in the ratings as a urn:simple equiv.
    See Also:
    Serialized Form
    • Field Detail

      • ADULT

        public static final Rating ADULT
        urn:simple adult. This will be populated on the deprecated media:adult tag as well,
      • NONADULT

        public static final Rating NONADULT
        urn:simple nonadult. This will be populated on the deprecated media:adult tag as well,
    • Constructor Detail

      • Rating

        public Rating​(String scheme,
                      String value)
        Parameters:
        scheme - scheme used for the rating
        value - value of the rating.