com.gcapmedia.dab.epg
Class Link

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

public class Link
extends java.lang.Object

This is used to link to additional information or content. The url attribute gives the protocol and address of the link. The mimeValue attribute indicates the MIME type (RFC 2045) of any data linked to and must be used where it is applicable. The language attribute indicates the language of the descriptive information and is in the form of an xml:lang attribute and RFC 3066. The description attribute is used to describe the link. The expiryTime attribute indicates when a link will expire.


Field Summary
protected  java.lang.String description
          Link description
protected  org.joda.time.DateTime expiryTime
          Link expiry time
protected  java.util.Locale locale
          Language locale
protected  java.lang.String mimeType
          Link MIME type
protected  java.net.URL url
          Link URL
 
Constructor Summary
Link(java.net.URL url)
          Create a new link
 
Method Summary
 java.lang.String getDescription()
           
 org.joda.time.DateTime getExpiryTime()
           
 java.lang.String getLanguage()
           
 java.lang.String getMimeType()
           
 java.net.URL getUrl()
           
 void setDescription(java.lang.String description)
          Sets the link description
 void setExpiryTime(org.joda.time.DateTime expiryTime)
          Sets the link expiry time
 void setLocale(java.util.Locale locale)
          Sets the link locale
 void setMimeType(java.lang.String mimeType)
          Sets the link MIME type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected java.net.URL url
Link URL


mimeType

protected java.lang.String mimeType
Link MIME type


locale

protected java.util.Locale locale
Language locale


description

protected java.lang.String description
Link description


expiryTime

protected org.joda.time.DateTime expiryTime
Link expiry time

Constructor Detail

Link

public Link(java.net.URL url)
Create a new link

Parameters:
url - Link URL
Method Detail

getUrl

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

getMimeType

public java.lang.String getMimeType()
Returns:
Returns the link MIME type

setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the link MIME type

Parameters:
mimeType - Link MIME type

getLanguage

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

setLocale

public void setLocale(java.util.Locale locale)
Sets the link locale

Parameters:
locale - Link locale

getDescription

public java.lang.String getDescription()
Returns:
Returns the link description

setDescription

public void setDescription(java.lang.String description)
Sets the link description

Parameters:
description - Link description

getExpiryTime

public org.joda.time.DateTime getExpiryTime()
Returns:
Returns the link expiry time

setExpiryTime

public void setExpiryTime(org.joda.time.DateTime expiryTime)
Sets the link expiry time

Parameters:
expiryTime - Link expiry time


Copyright © 2007. All Rights Reserved.