public class MediaMetadata extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ABSOLUTE_NR |
static String |
BACKGROUND_URL |
static String |
COLLECTION_NAME |
static String |
COUNTRY |
static String |
EPISODE_NR |
static String |
EPISODE_NR_COMBINED |
static String |
EPISODE_NR_DISPLAY |
static String |
EPISODE_NR_DVD |
static String |
IMDB |
static Date |
INITIAL_DATE |
static String |
ORIGINAL_TITLE |
static String |
PLOT |
static String |
POSTER_URL |
static String |
PRODUCTION_COMPANY |
static String |
PROVIDER_ID |
static String |
RATING |
static String |
RELEASE_DATE |
static String |
RUNTIME |
static String |
SEASON_NR |
static String |
SEASON_NR_COMBINED |
static String |
SEASON_NR_DISPLAY |
static String |
SEASON_NR_DVD |
static String |
SPOKEN_LANGUAGES |
static String |
STATUS |
static String |
TAGLINE |
static String |
TITLE |
static String |
TMDB |
static String |
TMDB_SET |
static String |
TOP_250 |
static String |
TVDB |
static String |
VOTE_COUNT |
static String |
YEAR |
Constructor and Description |
---|
MediaMetadata(String providerId)
Instantiates a new media metadata for the given provider.
|
Modifier and Type | Method and Description |
---|---|
void |
addCastMember(MediaCastMember cm)
Adds the cast member.
|
void |
addCertification(Certification certification)
Adds the certification.
|
void |
addGenre(MediaGenres genre)
Adds the genre.
|
void |
addMediaArt(List<MediaArtwork> art)
Adds the media art.
|
void |
addMediaArt(MediaArtwork ma)
Adds the media art.
|
void |
addSubItem(MediaMetadata item)
Add a sub item
|
void |
addTrailer(MediaTrailer trailer)
Adds the trailer.
|
void |
clearMediaArt()
Clear media art.
|
HashMap<String,Object> |
getAllMetadata()
Gets all metadata
|
List<MediaCastMember> |
getCastMembers()
Gets the cast members.
|
List<MediaCastMember> |
getCastMembers(MediaCastMember.CastType type)
Gets the cast members.
|
List<Certification> |
getCertifications()
Gets the certifications.
|
Date |
getDateValue(String key)
Gets the Date value for a given key.
|
Double |
getDoubleValue(String key)
Gets the Double value for a given key.
|
List<MediaArtwork> |
getFanart()
Gets the fanart.
|
Float |
getFloatValue(String key)
Gets the Float value for a given key.
|
List<MediaGenres> |
getGenres()
Gets the genres.
|
Object |
getId(String key)
Gets an ID.
|
HashMap<String,Object> |
getIds()
Gets all IDs.
|
Integer |
getIntegerValue(String key)
Gets the Integer value for a given key.
|
Integer |
getIntegerValue(String key,
Integer defaultValue)
Gets the Integer value for a given key.
|
List<MediaArtwork> |
getMediaArt(MediaArtwork.MediaArtworkType type)
Gets the media art.
|
String |
getProviderId()
Gets the provider id.
|
String |
getStringValue(String key)
Gets the String value for a given key
|
List<MediaMetadata> |
getSubItems()
Get all subitems
|
List<MediaTrailer> |
getTrailers()
Gets the trailers.
|
void |
mergeFrom(MediaMetadata md)
merges all entries from other MD into ours, IF VALUES ARE EMPTY
needs testing! |
void |
setId(String key,
Object object)
Sets an ID.
|
void |
storeMetadata(String key,
Object value)
Stores a metadata in the internal map.
|
String |
toString()
Uses
ReflectionToStringBuilder to generate a toString for the specified object. |
public static final String PROVIDER_ID
public static final String COLLECTION_NAME
public static final String TITLE
public static final String ORIGINAL_TITLE
public static final String PLOT
public static final String RATING
public static final String VOTE_COUNT
public static final String TOP_250
public static final String RUNTIME
public static final String TAGLINE
public static final String PRODUCTION_COMPANY
public static final String YEAR
public static final String RELEASE_DATE
public static final String SPOKEN_LANGUAGES
public static final String COUNTRY
public static final String POSTER_URL
public static final String BACKGROUND_URL
public static final String STATUS
public static final String EPISODE_NR
public static final String SEASON_NR
public static final String EPISODE_NR_DVD
public static final String SEASON_NR_DVD
public static final String EPISODE_NR_DISPLAY
public static final String SEASON_NR_DISPLAY
public static final String EPISODE_NR_COMBINED
public static final String SEASON_NR_COMBINED
public static final String ABSOLUTE_NR
public static final String IMDB
public static final String TMDB
public static final String TVDB
public static final String TMDB_SET
public static Date INITIAL_DATE
public MediaMetadata(String providerId)
providerId
- the provider idpublic void mergeFrom(MediaMetadata md)
md
- other MediaMetadatapublic String getProviderId()
public void storeMetadata(String key, Object value)
key
- the keyvalue
- the metadatapublic HashMap<String,Object> getAllMetadata()
public String getStringValue(String key)
key
- the keypublic Integer getIntegerValue(String key)
key
- the keypublic Integer getIntegerValue(String key, Integer defaultValue)
key
- the keydefaultValue
- the default value to be returned on any errorpublic Float getFloatValue(String key)
key
- the keypublic Double getDoubleValue(String key)
key
- the keypublic Date getDateValue(String key)
key
- the keypublic List<MediaGenres> getGenres()
public List<MediaCastMember> getCastMembers(MediaCastMember.CastType type)
type
- the typepublic List<MediaArtwork> getMediaArt(MediaArtwork.MediaArtworkType type)
type
- the typepublic void addGenre(MediaGenres genre)
genre
- the genrepublic void addCastMember(MediaCastMember cm)
cm
- the cast memberpublic void addMediaArt(MediaArtwork ma)
ma
- the mapublic void clearMediaArt()
public void addMediaArt(List<MediaArtwork> art)
art
- the artpublic List<MediaCastMember> getCastMembers()
public List<MediaArtwork> getFanart()
public void addSubItem(MediaMetadata item)
item
- the subitem to be addedpublic List<MediaMetadata> getSubItems()
public void addCertification(Certification certification)
certification
- the certificationpublic List<Certification> getCertifications()
public void addTrailer(MediaTrailer trailer)
trailer
- the trailerpublic List<MediaTrailer> getTrailers()
public void setId(String key, Object object)
key
- the ID-keyobject
- the idCopyright © 2012–2015 tinyMediaManager. All rights reserved.