public class ContentRatingAdvisoryImpl extends Object implements ContentRatingAdvisory
This information may be obtained in the ATSC Content Advisory Descriptor or the DVB Parental Rating Descriptor. Note that the DVB rating system is based on age only. It can be easily mapped to this rating system as one of the dimensions.
| Constructor and Description |
|---|
ContentRatingAdvisoryImpl(Vector dimensionNames,
Vector longNames) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exceeds()
Compares the current rating value with the user specified
rating ceiling.
|
String[] |
getDimensionNames()
Returns a list of names of all dimensions rated for this Rating
Region.
|
String |
getDisplayText()
Provides a single string representing textual rating values for all
dimensions.
|
short |
getRatingLevel(String ratedDimension)
Returns a number representing the rating level in the specified
RatingDimension associated with this rating region
for the related Service or Program Event. |
String |
getRatingLevelText(String dimensionName)
Returns the rating description display string for the specified
dimension.
|
public String[] getDimensionNames()
getDimensionNames in interface ContentRatingAdvisoryjavax.tv.service.navigation.RatingDimensionpublic short getRatingLevel(String ratedDimension) throws SIException
RatingDimension associated with this rating region
for the related Service or Program Event.getRatingLevel in interface ContentRatingAdvisorydimensionName - The name of the RatingDimension
for which to obtain the rating level.SIException - If dimensionName is not a valid
RatingDimension name.javax.tv.service.navigation.RatingDimension#getDimensionNamepublic String getRatingLevelText(String dimensionName) throws SIException
getRatingLevelText in interface ContentRatingAdvisorydimensionName - The name of the RatingDimension
for which to obtain the description.SIException - If dimensionName is not a valid
RatingDimension name.javax.tv.service.navigation.RatingDimension#getDimensionNamepublic String getDisplayText()
getDisplayText in interface ContentRatingAdvisoryContentRatingAdvisory.getDimensionNames(),
RatingDimension.getRatingLevelDescription(short)public boolean exceeds()
exceeds in interface ContentRatingAdvisoryCopyright © 2012 code4tv.com. All Rights Reserved.