|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.xtvdclient.xtvd.datatypes.MpaaRatings
public class MpaaRatings
A ordinal-based typesafe enum
class that represents
the pre-defined values for tms:mpaaRatings
as defined
in the XTVD schema.
Copyright 2004, Tribune Media Services
$Id: MpaaRatings.java,v 1.5 2004/03/26 15:56:16 rakesh Exp $Field Summary | |
---|---|
static MpaaRatings |
ADULT
The typesafe representation of the Adult mpaaRating. |
static MpaaRatings |
AO
The typesafe representation of the AO mpaaRating. |
static MpaaRatings |
G
The typesafe representation of the G mpaaRating. |
static MpaaRatings |
NC_17
The typesafe representation of the NC-17 mpaaRating. |
static MpaaRatings |
NONE
The typesafe representation of the NONE mpaaRating. |
static MpaaRatings |
NOT_RATED
The typesafe representation of the NOT RATED mpaaRating. |
static MpaaRatings |
NR
The typesafe representation of the NR mpaaRating. |
static MpaaRatings |
PG
The typesafe representation of the PG mpaaRating. |
static MpaaRatings |
PG_13
The typesafe representation of the PG-13 mpaaRating. |
static MpaaRatings |
R
The typesafe representation of the R mpaaRating. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object object)
Implementation of the Comparable interface. |
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
static MpaaRatings |
getMpaaRating(java.lang.String rating)
Return the appropriate MpaaRatings based upon the
string specified. |
int |
hashCode()
Returns a hash code value for this class. |
java.lang.String |
toString()
Over-ridden to return the value of rating . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final MpaaRatings ADULT
Adult
mpaaRating.
public static final MpaaRatings AO
AO
mpaaRating.
public static final MpaaRatings G
G
mpaaRating.
public static final MpaaRatings NC_17
NC-17
mpaaRating.
public static final MpaaRatings NONE
NONE
mpaaRating.
public static final MpaaRatings NOT_RATED
NOT RATED
mpaaRating.
public static final MpaaRatings NR
NR
mpaaRating.
public static final MpaaRatings PG
PG
mpaaRating.
public static final MpaaRatings PG_13
PG-13
mpaaRating.
public static final MpaaRatings R
R
mpaaRating.
Method Detail |
---|
public static final MpaaRatings getMpaaRating(java.lang.String rating)
MpaaRatings
based upon the
string specified. If the appropriate mpaa rating does not exist
return null
.
rating
- The rating value that is to be used to fetch
the corresponding MpaaRatings.
null
otherwise.public java.lang.String toString()
rating
.
toString
in class java.lang.Object
public int compareTo(java.lang.Object object)
Comparable
interface.
Compares this object with the specified object for order. Returns
a negative integer, zero, or a positive integer as this object is
less than, equal to, or greater than the specified object.
compareTo
in interface java.lang.Comparable
object
- The object with which this class is to
be compared. No class type checking is done.
public boolean equals(java.lang.Object object)
ordinal
value.
equals
in class java.lang.Object
object
- The reference object with which to compare.
true
if the match succeeds.public int hashCode()
ordinal
.
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |