public class RatingDimensionImpl extends Object implements RatingDimension
| Constructor and Description |
|---|
RatingDimensionImpl(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRatingLevelDescription(String shortName,
String fullName) |
short |
findRatingLevel(String longName) |
String |
getDimensionName()
Returns a string which represents the dimension name being described by
this object.
|
short |
getNumberOfLevels()
Returns the number of values defined for this particular dimension.
|
static RatingDimension |
getRatingDimension(String name)
Returns the Rating Dimension corresponding to the specified Dimension
name.
|
String[] |
getRatingLevelDescription(short ratingLevel)
Returns a pair of Strings describing the specified Rating Level for
this Dimension.
|
static String[] |
getSupportedDimensions()
Provides a list of names of available rating dimensions for the local
rating region.
|
public RatingDimensionImpl(String name)
public String getDimensionName()
getDimensionName in interface RatingDimensionpublic short getNumberOfLevels()
getNumberOfLevels in interface RatingDimensionpublic String[] getRatingLevelDescription(short ratingLevel) throws SIException
getRatingLevelDescription in interface RatingDimensionratingLevel - The rating level for which to retrieve the
textual description.SIException - If ratingLevel is not valid for
this RatingDimensionImpl.ContentRatingAdvisory.getRatingLevel(java.lang.String)public static String[] getSupportedDimensions()
RatingDimensionpublic short findRatingLevel(String longName)
public static RatingDimension getRatingDimension(String name)
name - Name of the requested rating dimensionCopyright © 2012 code4tv.com. All Rights Reserved.