com.gcapmedia.dab.epg
Class ContentId

java.lang.Object
  extended by com.gcapmedia.dab.epg.ContentId
All Implemented Interfaces:
java.io.Serializable

public class ContentId
extends java.lang.Object
implements java.io.Serializable

Contains t he Eureka-147 bearer ID, usually expressed in the format: <ECC>.<EId>.<SId>.<SCIdS>.<X-PAD> in hex:

For example, e1.ce15.c224.0

This only covers DAB Content IDs, rather than DRM.

See Also:
Serialized Form

Nested Class Summary
static class ContentId.ServiceType
           
 
Constructor Summary
ContentId(java.lang.String id)
          Create a new Bearer ID
ContentId(java.lang.String sid, java.lang.String scids)
          Create a new Bearer ID
ContentId(java.lang.String ecc, java.lang.String eid, java.lang.String sid, java.lang.String scids)
          Create a new Bearer ID
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getEnsembleId()
           
 java.lang.String getExtendedCountryCode()
           
 java.lang.String getServiceComponentId()
           
 java.lang.String getServiceId()
           
 ContentId.ServiceType getServiceType()
           
 java.lang.String getXPadApplicationType()
           
 boolean hasEnsembleId()
           
 boolean hasExtendedCountryCode()
           
 boolean hasXpadApplication()
           
 void setXPadApplicationType(java.lang.String xpad)
          Sets the XPad application type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentId

public ContentId(java.lang.String ecc,
                 java.lang.String eid,
                 java.lang.String sid,
                 java.lang.String scids)
Create a new Bearer ID

Parameters:
ecc - Extended Country Code (ECC) of the ensemble on which the service is broadcast.
eid - Ensemble ID (EId) of the ensemble on which the service is broadcast.
sid - Service Identifier (SId).
scids - Service Identifier within the Service (SCIdS).

ContentId

public ContentId(java.lang.String sid,
                 java.lang.String scids)
Create a new Bearer ID

Parameters:
sid - Service Identifier (SId).
scids - Service Identifier within the Service (SCIdS).

ContentId

public ContentId(java.lang.String id)
Create a new Bearer ID

Parameters:
id - Bearer ID
Method Detail

getExtendedCountryCode

public java.lang.String getExtendedCountryCode()

getEnsembleId

public java.lang.String getEnsembleId()

getServiceId

public java.lang.String getServiceId()
Returns:
Returns the Service Identifier

getServiceComponentId

public java.lang.String getServiceComponentId()
Returns:
Returns the Service Component ID within the Service (SCIdS)

setXPadApplicationType

public void setXPadApplicationType(java.lang.String xpad)
Sets the XPad application type. Set to zero to indicate no application.

Parameters:
xpad -

getXPadApplicationType

public java.lang.String getXPadApplicationType()
Returns:
Returns the XPad Application type

getServiceType

public ContentId.ServiceType getServiceType()
Returns:
Returns the Service Type this Identifer is referring to: either an Audio or a Data service.

hasExtendedCountryCode

public boolean hasExtendedCountryCode()
Returns:
True if the Extended Country Code (ECC) is defined.

hasEnsembleId

public boolean hasEnsembleId()
Returns:
True if the Ensemble ID (EId) is defined.

hasXpadApplication

public boolean hasXpadApplication()
Returns:
True if the X-PAD application type (XPAD) is defined

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
Returns:
Returns the The Eureka-147 bearer ID string in the format: <ECC>.<EId>.<SId> .<SCIdS>.<X-PAD> in hex:
  • ECC Extended Country Code (optional)
  • EId Ensemble Identifier (optional) - either a 16-bit service identifier (for audio services) or a 32-bit service identifier (for data services)
  • SId Service Identifier
  • SCIds Service Component Identifier within the Service
  • X-PAD X-PAD application type (optional)
See Also:
Object.toString()


Copyright © 2007. All Rights Reserved.