com.sun.syndication.feed.module.mediarss.types
Class Rating
java.lang.Object
com.sun.syndication.feed.module.mediarss.types.AbstractSchemeValue
com.sun.syndication.feed.module.mediarss.types.Rating
- All Implemented Interfaces:
- java.io.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.
- Author:
- cooper
- See Also:
- Serialized Form
Constructor Summary |
Rating(java.lang.String scheme,
java.lang.String value)
Constructs a new Rating object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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,
Rating
public Rating(java.lang.String scheme,
java.lang.String value)
- Constructs a new Rating object.
- Parameters:
scheme
- scheme used for the ratingvalue
- value of the rating.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- Parameters:
obj
-
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
Copyright © 2006-2009. All Rights Reserved.