org.dvb.spi.si.simple
Class ProgramReference

java.lang.Object
  extended by org.dvb.spi.si.simple.ProgramReference

public final class ProgramReference
extends java.lang.Object

This class represents a reference to a program within a service that is accessed using a SelectionProvider.

See Also:
SelectionProvider, SimpleSIProvider.getProgramReferences(org.dvb.spi.selection.ServiceReference), ProgramDescription

Constructor Summary
ProgramReference(ServiceReference service, java.lang.String programIdentifier)
          Constructs a reference to a program.
 
Method Summary
 java.lang.String getProgramIdentifier()
          Get the identifier of the program.
 ServiceReference getServiceReference()
          Get the service containing the program as passed to the constructor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramReference

public ProgramReference(ServiceReference service,
                        java.lang.String programIdentifier)
Constructs a reference to a program.

Parameters:
service - the service containing the program
programIdentifier - an identifier for the program within the service
Method Detail

getServiceReference

public ServiceReference getServiceReference()
Get the service containing the program as passed to the constructor.

Returns:
a service

getProgramIdentifier

public java.lang.String getProgramIdentifier()
Get the identifier of the program.

Returns:
a program identifier