it.dtt.ca.ppv
Class Rating

java.lang.Object
  extended by it.dtt.ca.ppv.Rating

public class Rating
extends java.lang.Object

Provide a classification for pay per view events.


Field Summary
static int ADULTS_ONLY
          The event may contain representation of explicit sex, violence, or crude language such that it is inappropriate for people under 18.
static int ALL_AUDIENCE
          The event can be viewed by all audience without restrictions.
static int PARENTAL_GUIDANCE
          The event describes circumstances for which parental guidance is adviced.
static int RESTRICTED
          The event may contain representations of violence, or crude language, for which it is inappropriate for young children.
 
Constructor Summary
Rating(int value)
          Create a Rating instance of the specified value.
 
Method Summary
 int[] getLevelsAsIntegers()
          Get the rating level as an array of integers.
 java.lang.String getLevelsAsString()
          Get the rating level as a String.
 int[] getRange()
          Get the rating level range as an array of integers.
 int getValue()
          Get the rating value; this is one of the values defined in this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_AUDIENCE

public static final int ALL_AUDIENCE
The event can be viewed by all audience without restrictions.

See Also:
Constant Field Values

PARENTAL_GUIDANCE

public static final int PARENTAL_GUIDANCE
The event describes circumstances for which parental guidance is adviced.

See Also:
Constant Field Values

RESTRICTED

public static final int RESTRICTED
The event may contain representations of violence, or crude language, for which it is inappropriate for young children.

See Also:
Constant Field Values

ADULTS_ONLY

public static final int ADULTS_ONLY
The event may contain representation of explicit sex, violence, or crude language such that it is inappropriate for people under 18.

See Also:
Constant Field Values
Constructor Detail

Rating

public Rating(int value)
Create a Rating instance of the specified value.

Parameters:
value - the rating value to set.
Method Detail

getValue

public int getValue()
Get the rating value; this is one of the values defined in this class.

Returns:
the rating value.

getLevelsAsString

public java.lang.String getLevelsAsString()
Get the rating level as a String.

Returns:
the rating levels.

getLevelsAsIntegers

public int[] getLevelsAsIntegers()
Get the rating level as an array of integers.

Returns:
the rating levels.

getRange

public int[] getRange()
Get the rating level range as an array of integers.

Returns:
the rating level ranges.