|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.rss.media.BaseMedia
public class BaseMedia
The base media description in Media RSS. The following elements are optional and may appear as sub-elements of channel, item, media content and/or media:group. When an element appears at a shallow level, such as channel or item, it means that the element should be applied to every media object within its scope. Duplicated elements appearing at deeper levels of the document tree have higher priority over other levels. For example, media content level elements are favored over item level elements. The priority level is listed from strongest to weakest: media content, media group, item, channel.
Constructor Summary | |
---|---|
BaseMedia()
|
Method Summary | |
---|---|
void |
addMediaCategory(Category mediaCategory)
Includes this media object in the specified category. |
void |
addMediaCredit(Credit mediaCredit)
Adds a credit. |
void |
addMediaHash(Hash mediaHash)
Adds a hash to this media object. |
void |
addMediaRating(Rating mediaRating)
Adds a rating to this media object. |
void |
addMediaRestriction(Restriction mediaRestriction)
Adds a restriction. |
void |
addMediaText(Text mediaText)
Adds a text. |
void |
addMediaThumbnail(Thumbnail mediaThumbnail)
Adds a thumbnail. |
Boolean |
getMediaAdult()
Specifies if this media object is rated "adult" or not. |
List<Category> |
getMediaCategories()
Returns a list of media object categories. |
Copyright |
getMediaCopyright()
Returns copyright information for media object. |
List<Credit> |
getMediaCredits()
Returns a list of credits. |
Description |
getMediaDescription()
Returns the description of the media object. |
List<Hash> |
getMediaHashes()
Returns a list of media object hashes. |
String |
getMediaKeywords()
Returns highly relevant keywords describing the media object with typically a maximum of ten words. |
Player |
getMediaPlayer()
Returns the player definition, if any. |
List<Rating> |
getMediaRatings()
Returns a list of media object ratings. |
List<Restriction> |
getMediaRestrictions()
Returns a list of restrictions. |
List<Text> |
getMediaTexts()
Returns a list of texts. |
List<Thumbnail> |
getMediaThumbnails()
Returns the list of thumbnails. |
Title |
getMediaTitle()
Returns the title of the media object. |
boolean |
isMediaAdult()
Specifies if this media object is rated "adult" or not. |
void |
setMediaAdult(boolean mediaAdult)
Specifies if this media object is rated "adult" or not. |
void |
setMediaAdult(Boolean mediaAdult)
Specifies if this media object is rated "adult" or not. |
void |
setMediaCopyright(Copyright mediaCopyright)
Initializes copyright information for media object. |
void |
setMediaDescription(Description mediaDescription)
Initializes the description of the media object. |
void |
setMediaKeywords(String mediaKeywords)
Initializes highly relevant keywords describing the media object with typically a maximum of ten words. |
void |
setMediaPlayer(Player mediaPlayer)
Initializes the player definition. |
void |
setMediaTitle(Title mediaTitle)
Initializes the title of the media object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseMedia()
Method Detail |
---|
public void setMediaPlayer(Player mediaPlayer)
mediaPlayer
- a player definition. May be null
.getMediaPlayer()
public Player getMediaPlayer()
null
.setMediaPlayer(christophedelory.rss.media.Player)
public void addMediaThumbnail(Thumbnail mediaThumbnail)
mediaThumbnail
- a thumbnail. Shall not be null
.
NullPointerException
- if mediaThumbnail
is null
.getMediaThumbnails()
public List<Thumbnail> getMediaThumbnails()
null
.addMediaThumbnail(christophedelory.rss.media.Thumbnail)
public void setMediaTitle(Title mediaTitle)
mediaTitle
- a title. May be null
.getMediaTitle()
public Title getMediaTitle()
null
.setMediaTitle(christophedelory.rss.media.Title)
public Description getMediaDescription()
null
.setMediaDescription(christophedelory.rss.media.Description)
public void setMediaDescription(Description mediaDescription)
mediaDescription
- a description. May be null
.getMediaDescription()
public boolean isMediaAdult()
setMediaAdult(boolean)
,
getMediaAdult()
public void setMediaAdult(boolean mediaAdult)
mediaAdult
- an adult rating indicator.isMediaAdult()
,
setMediaAdult(boolean)
public Boolean getMediaAdult()
false
.
null
.setMediaAdult(boolean)
,
isMediaAdult()
public void setMediaAdult(Boolean mediaAdult)
mediaAdult
- an adult rating indicator. May be null
.getMediaAdult()
,
setMediaAdult(boolean)
public List<Category> getMediaCategories()
null
.addMediaCategory(christophedelory.rss.media.Category)
public void addMediaCategory(Category mediaCategory)
mediaCategory
- a category. Shall not be null
.
NullPointerException
- if category
is null
.getMediaCategories()
public List<Rating> getMediaRatings()
null
.addMediaRating(christophedelory.rss.media.Rating)
public void addMediaRating(Rating mediaRating)
mediaRating
- a rating. Shall not be null
.
NullPointerException
- if mediaRating
is null
.getMediaRatings()
public String getMediaKeywords()
<media:keywords>kitty, cat, big dog, yarn, fluffy</media:keywords>
null
setMediaKeywords(java.lang.String)
public void setMediaKeywords(String mediaKeywords)
mediaKeywords
- some keywords. May be null
setMediaKeywords(java.lang.String)
public List<Hash> getMediaHashes()
null
.addMediaHash(christophedelory.rss.media.Hash)
public void addMediaHash(Hash mediaHash)
mediaHash
- a hash. Shall not be null
.
NullPointerException
- if mediaHash
is null
.getMediaHashes()
public List<Credit> getMediaCredits()
null
.addMediaCredit(christophedelory.rss.media.Credit)
public void addMediaCredit(Credit mediaCredit)
mediaCredit
- a credit. Shall not be null
.
NullPointerException
- if mediaCredit
is null
.getMediaCredits()
public Copyright getMediaCopyright()
null
setMediaCopyright(christophedelory.rss.media.Copyright)
public void setMediaCopyright(Copyright mediaCopyright)
mediaCopyright
- a copyright element. May be null
setMediaCopyright(christophedelory.rss.media.Copyright)
public List<Text> getMediaTexts()
null
.addMediaText(christophedelory.rss.media.Text)
public void addMediaText(Text mediaText)
mediaText
- a text. Shall not be null
.
NullPointerException
- if mediaText
is null
.getMediaTexts()
public List<Restriction> getMediaRestrictions()
null
.addMediaRestriction(christophedelory.rss.media.Restriction)
public void addMediaRestriction(Restriction mediaRestriction)
mediaRestriction
- a restriction. Shall not be null
.
NullPointerException
- if mediaRestriction
is null
.getMediaRestrictions()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |