com.gcapmedia.dab.epg
Class Multimedia

java.lang.Object
  extended by com.gcapmedia.dab.epg.Multimedia

public class Multimedia
extends java.lang.Object

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

type

protected Multimedia.Type type
Media type


width

protected int width
Media width (for images)


height

protected int height
Media height (for images)

Constructor Detail

Multimedia

public Multimedia(java.net.URL url)
Create a new multimedia object

Parameters:
url - Multimedia HREF

Multimedia

public Multimedia(java.net.URL url,
                  java.util.Locale locale)
Create a new multimedia object

Parameters:
url - Multimedia HREF
locale - Multimedia language
Method Detail

setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the MIME type for this multimedia

Parameters:
mimeType -

getMimeType

public java.lang.String getMimeType()
Returns:
Returns the multimedia mime type

getUrl

public java.net.URL getUrl()
Returns:
Returns the multimedia URL

getLanguage

public java.lang.String getLanguage()
Returns:
Returns the multimedia language

setType

public void setType(Multimedia.Type type)

getType

public Multimedia.Type getType()

setHeight

public void setHeight(int height)

getHeight

public int getHeight()

setWidth

public void setWidth(int width)

getWidth

public int getWidth()


Copyright © 2007. All Rights Reserved.