Interface IContentRatingLevel
interface IContentRatingLevel
Extends com.amazon.apmf.IStandard
Methods
getRatingsSystem()
string getRatingsSystem()
Returns
string
the unique identifying key for a “ratings system”, an specific
industry ratings standard.
getRating()
string getRating()
Returns
string
the unique identifying key for a rating that is a valid rating
within the ratings system returned by [#getRatingsSystem].
isLessOrEquallyRestrictiveThan()
Compares two ratings levels to determine whether one is less-or-equally as restrictive as another. Note, this is a partial function over the domain of [IContentRatingLevel] objects; only rating levels of the same ratings system may be compared.boolisLessOrEquallyRestrictiveThan(IContentRatingLevel*other)
Example
Given a={us_mpaa, G} and b={us_mpaa, PG-13}:a->isLessOrEquallyRestrictiveThan(b) => trueb->isLessOrEquallyRestrictiveThan(a) => falsea->isLessOrEquallyRestrictiveThan(a) => true
a->isLessOrEquallyRestrictiveThan(c) => raises NoncomparableRatingsErrorc->isLessOrEquallyRestrictiveThan(a) => raises NoncomparableRatingsError
Parameters
other
IContentRatingLevel* — Required
the content rating level to compare with
Returns
bool
true if this object is less restrictive or equally restrictive
to other else false.
Throws
NoncomparableRatingsError— when attempting to compare ratings levels from different ratings systems.

