Author: ygrego Date: 2015-05-15 11:20:16 +0000 (Fri, 15 May 2015) New Revision: 1342 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1342 Log: Implementation of the class "ParentalRating". Added: oipf/js/impl/model/ParentalRating.js Added: oipf/js/impl/model/ParentalRating.js =================================================================== --- oipf/js/impl/model/ParentalRating.js (rev 0) +++ oipf/js/impl/model/ParentalRating.js 2015-05-15 11:20:16 UTC (rev 1342) @@ -0,0 +1,58 @@ +/* + * A ParentalRating object describes a parental rating value for a programme or + * channel. The ParentalRating object identifies both the rating scheme in use, + * and the parental rating value within that scheme. In case of a BCG the values + * of the properties in this object will be read from the ParentalGuidance + * element that is the child of a programme’s BCG description. + */ +var ParentalRating = Class.extend({ + + /* + * Visibility Type: readonly String + */ + name: null, + + /* + * Description: + * Unique name identifying the parental rating guidance scheme to which this + * parental rating value refers. + * + * Valid strings include: + * - the URI of one of the MPEG-7 classification schemes representing a + * parental rating scheme as defined by the “ uri ” attribute of one of the + * parental rating <ClassificationScheme> elements in [MPEG-7]. + * + * - the string value “ urn:oipf:GermanyFSKCS ” to represent the GermanyFSK + * rating scheme as defined in [OIPF_META2]. + * + * - the string value “ dvb-si ”: this means that the scheme of a minimum + * recommended age encoded as per [EN 300 468], is used to represent the + * parental rating values. + * + * Visibility Type: readonly String + */ + scheme: null, + + /* + * Visibility Type: readonly Integer + */ + value: null, + + /* + * Visibility Type: readonly Integer + */ + labels: null, + + /* + * Visibility Type: readonly String + */ + region: null, + + init : function(name, scheme, value, labels, region) { + this.name = name; + this.scheme = scheme; + this.value = value; + this.labels = labels; + this.region = region; + } +});