com.gcapmedia.dab.epg
Class Crid

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

public class Crid
extends java.lang.Object

A unique identifier for a programme, programme event or programme group in the format in the format of a Content Reference ID as defined in the TV-Anytime specification.

This CRID (Content Reference ID) should be in the form of:

crid://<authority>/<data>
Where <authority> is a registered Internet domain name that the CRID author has permission to use. The <authority> string is case insensitive. <data> is a free format string (URI compliant and case insensitive) that is meaningful to the given authority and should uniquely identify the content within that authority.


Constructor Summary
Crid(java.lang.String crid)
          Create a new CRID from its string representation
Crid(java.lang.String authority, java.lang.String data)
          Create a new CRID
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAuthority()
           
 java.lang.String getCrid()
           
 java.lang.String getData()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Crid

public Crid(java.lang.String authority,
            java.lang.String data)
Create a new CRID

Parameters:
authority - CRID authority
data - CRID data

Crid

public Crid(java.lang.String crid)
Create a new CRID from its string representation

Parameters:
crid - CRID string
Method Detail

getAuthority

public java.lang.String getAuthority()
Returns:
Returns the CRID authority

getData

public java.lang.String getData()
Returns:
Returns the CRID data

getCrid

public java.lang.String getCrid()
Returns:
Returns the formatted CRID

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2007. All Rights Reserved.