public class Rating extends AbstractSchemeValue
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.Modifier and Type | Field and Description |
---|---|
static Rating |
ADULT
urn:simple adult.
|
static Rating |
NONADULT
urn:simple nonadult.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
Rating(java.lang.String scheme,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
getScheme, getValue
private static final long serialVersionUID
public static final Rating ADULT
public static final Rating NONADULT