|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gcapmedia.dab.epg.Multimedia
public class Multimedia
Multimedia resource
The optional mimetype attribute indicates the MIME type of the resource.
The language attribute indicates the language of the source information and is in the form of an xml:lang attribute and RFC 3066.
The url attribute points to the multimedia resource.
The optional type attribute indicates the type of multimedia resource and is intended to support the correct presentation of the resource by the EPG decoder.
NOTE: The context of the logo (i.e. is it related to an ensemble or a service or a programme etc.) is defined by the parent elements of the multimedia element.
The optional width and height attributes define the size of the logo in pixels.
Nested Class Summary | |
---|---|
static class |
Multimedia.Type
The enumerated types allowed are defined here: logo_unrestricted: An ensemble/service/programme/programme group/programme event logo. |
Field Summary | |
---|---|
protected int |
height
Media height (for images) |
protected Multimedia.Type |
type
Media type |
protected int |
width
Media width (for images) |
Constructor Summary | |
---|---|
Multimedia(java.net.URL url)
Create a new multimedia object |
|
Multimedia(java.net.URL url,
java.util.Locale locale)
Create a new multimedia object |
Method Summary | |
---|---|
int |
getHeight()
|
java.lang.String |
getLanguage()
|
java.lang.String |
getMimeType()
|
Multimedia.Type |
getType()
|
java.net.URL |
getUrl()
|
int |
getWidth()
|
void |
setHeight(int height)
|
void |
setMimeType(java.lang.String mimeType)
Sets the MIME type for this multimedia |
void |
setType(Multimedia.Type type)
|
void |
setWidth(int width)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Multimedia.Type type
protected int width
protected int height
Constructor Detail |
---|
public Multimedia(java.net.URL url)
url
- Multimedia HREFpublic Multimedia(java.net.URL url, java.util.Locale locale)
url
- Multimedia HREFlocale
- Multimedia languageMethod Detail |
---|
public void setMimeType(java.lang.String mimeType)
mimeType
- public java.lang.String getMimeType()
public java.net.URL getUrl()
public java.lang.String getLanguage()
public void setType(Multimedia.Type type)
public Multimedia.Type getType()
public void setHeight(int height)
public int getHeight()
public void setWidth(int width)
public int getWidth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |