public interface ContentRatingAdvisory
For example, 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.
ProgramEvent| Modifier and Type | Method and Description |
|---|---|
boolean |
exceeds()
Compares the current rating value with the system rating
ceiling.
|
String[] |
getDimensionNames()
Returns a list of names of all dimensions in this rating
region by which the
ProgramEvent is rated. |
String |
getDisplayText()
Provides a single string representing textual rating values for all
dimensions in which the program event is rated.
|
short |
getRatingLevel(String dimensionName)
Returns a number representing the rating level in the specified
RatingDimension associated with this rating region
for the related ProgramEvent. |
String |
getRatingLevelText(String dimensionName)
Returns the rating level display string for the specified
dimension.
|
String[] getDimensionNames()
ProgramEvent is rated.ProgramEvent.RatingDimensionshort getRatingLevel(String dimensionName) throws SIException
RatingDimension associated with this rating region
for the related ProgramEvent.dimensionName - The name of the RatingDimension
for which to obtain the rating level.SIException - If dimensionName is not a valid
name of a RatingDimension for the ProgramEvent.RatingDimension.getDimensionName()String getRatingLevelText(String dimensionName) throws SIException
d.getRatingLevelDescription(getRatingLevel(dimensionName))[1],
where d is the RatingDimension obtained
by
javax.tv.service.SIManager.getRatingDimension(dimensionName).dimensionName - The name of the RatingDimension
for which to obtain the rating level text.SIException - If dimensionName is not a valid
RatingDimension name for the ProgramEvent.RatingDimension.getDimensionName(),
RatingDimension.getRatingLevelDescription(short)String getDisplayText()
d.getRatingLevelDescription(getRatingLevel(d.getDimensionName()))[0],
for all dimensions d obtained through
javax.tv.service.SIManager.getRatingDimension(n),
for all dimension names n obtained from
getDimensionNames().getDimensionNames(),
RatingDimension.getRatingLevelDescription(short)boolean exceeds()
true if the rating exceeds the current
system rating ceiling; false otherwise.Copyright © 2012 code4tv.com. All Rights Reserved.