|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbbc.rd.tvanytime.Genre
public class Genre
Field Summary | |
---|---|
static int |
GENRE_CS_NUM
|
static int |
MAIN
|
static int |
OTHER
|
static int |
SECONDARY
|
Constructor Summary | |
---|---|
Genre()
Constructor for Genre class |
|
Genre(java.lang.String href)
Constructor for Genre class |
Method Summary | |
---|---|
void |
addMPEG7Name(java.lang.String MPEG7Name)
addMPEG7Name - adds a MPEG7Name to this Genre object |
java.lang.Object |
clone()
Clones itself. |
int |
getGenreValue(int genreLevel)
getGenreValue - returns the value of the Genre at the specified level |
java.lang.String |
getHref()
getHref - returns the href variable for this Genre object as a String |
java.lang.String |
getMPEG7Name(int index)
getMPEG7Name - returns the MPEG7Name String at the specified index |
java.lang.String |
getNumberedHierarchy()
getNumberedHierarchy - returns the String representation of the Genre dot-separated number |
int |
getNumMPEG7Names()
getNumMPEG7Names - returns the number of MPEG7Name Strings in this Genre object |
int |
getType()
getType - returns the Genre type for this Genre object |
void |
setHref(java.lang.String href)
setHref - sets the href variable for this Genre. |
void |
setLevel(int genreLevel,
int genreValue)
setLevel - sets the specified genre name level to the value passed as a parameter |
void |
setNumberedHierarchy(java.lang.String numberedHierarchy)
setNumberedHierarchy - sets the numbered hierarchy of this Genre and also updates the href String and CS number and clears MPEG7Names. |
void |
setType(int type)
setType - sets the genre type for this Genre |
java.lang.String |
toString()
toString - returns a String representation of this Genre object |
java.lang.String |
toString(int indent)
toString - returns a String representation of this Genre object with the specified number of tab indentations |
java.lang.String |
toXML()
Returns a XML representation of this Genre object |
java.lang.String |
toXML(int indent)
Returns a XML representation of this Genre object with the specified number of tab indentations |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAIN
public static final int SECONDARY
public static final int OTHER
public static final int GENRE_CS_NUM
Constructor Detail |
---|
public Genre()
public Genre(java.lang.String href) throws TVAnytimeException
href
- a String representing the href attribute for this Genre (including
the numbered Genre hierarchy
TVAnytimeException
- if the string passed is of the wrong formatMethod Detail |
---|
public void setNumberedHierarchy(java.lang.String numberedHierarchy) throws TVAnytimeException
numberedHierarchy
- String representation of dot-separated genre number
TVAnytimeException
- if the hierarchy string is of the wrong formatpublic java.lang.String getNumberedHierarchy()
public void setLevel(int genreLevel, int genreValue) throws TVAnytimeException
genreLevel
- the genre level to be setgenreValue
- the value the genre level is to be set to
TVAnytimeException
- if there is a format errorpublic int getGenreValue(int genreLevel)
genreLevel
- the level of the genre value required
public void setType(int type) throws TVAnytimeException
type
- the genre type required for this Genre
TVAnytimeException
- if the type is invalidpublic int getType()
public void setHref(java.lang.String href) throws TVAnytimeException
href
- the href required for this Genre
TVAnytimeException
- if the href string has the wrong formatpublic java.lang.String getHref()
public java.lang.String toXML()
public java.lang.String toXML(int indent)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indent)
public void addMPEG7Name(java.lang.String MPEG7Name)
MPEG7Name
- the MPEG7Name String to be addedpublic java.lang.String getMPEG7Name(int index)
index
- the index of the desired MPEG7Name String
public int getNumMPEG7Names()
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |