public class Rating extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ACTION
Action-Rating
|
static String |
COUNT
How many Users have rated this Entry
|
static String |
ENTITLEMENT
Entitlement-Rating
|
static String |
EROTIC
Erotic-Rating
|
static String |
FUN
Fun-Rating
|
static String |
GENRE
The Genre
|
static String |
ID
ID of the rating in the online-database
|
static String |
OVERALL
Overall-Rating
|
(package private) static long |
serialVersionUID
Used to serialize this Object
|
static String |
TENSION
Tension-Rating
|
Constructor and Description |
---|
Rating()
Creates a empty Rating
|
Rating(String title)
Creates a empty Rating
|
Rating(String title,
HashMap values)
Creates a Rating
|
Modifier and Type | Method and Description |
---|---|
int |
getIntValue(Object key)
Gets an Int-Value from this Rating
|
String |
getTitle()
Gets the Title
|
void |
setTitle(String string)
Sets the Title
|
void |
setValue(Object key,
int value)
Sets an Int-Value in this Rating
|
String |
toString()
Returns a String-Representation of this Object
|
static final long serialVersionUID
public static final String OVERALL
public static final String ACTION
public static final String FUN
public static final String EROTIC
public static final String TENSION
public static final String ENTITLEMENT
public static final String ID
public static final String GENRE
public static final String COUNT
public Rating()
public Rating(String title)
title
- Title of the Program this rating is aboutpublic String getTitle()
public void setTitle(String string)
string
- Title of the Programpublic String toString()
public int getIntValue(Object key)
key
- Possible Keys are FUN, EROTIC...public void setValue(Object key, int value)
key
- Possible Keys are FUN, EROTIC...value
- Int-Value for this KeyTV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)