com.gcapmedia.dab.epg
Class Schedule

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

public class Schedule
extends java.lang.Object


Constructor Summary
Schedule()
          Create a new schedule
 
Method Summary
 void addProgramme(Programme programme)
          Add a programme to the schedule
 void clearProgrammes()
          Clears all programmes from the schedule
 boolean equals(java.lang.Object obj)
           
 org.joda.time.ReadableInstant getCreated()
           
 java.lang.String getOriginator()
           
 java.util.Collection<Programme> getProgrammes()
           
 Scope getScope()
           
 int getVersion()
           
 void removeProgramme(Programme programme)
          Remove a programme from the schedule
 void setCreated(org.joda.time.ReadableInstant created)
          Sets the time the schedule was created
 void setOriginator(java.lang.String originator)
          Sets the originator for this schedule
 void setScope(Scope scope)
          Sets the schedule scope
 void setVersion(int version)
          Sets the version number of this schedule
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Schedule

public Schedule()
Create a new schedule

Method Detail

setCreated

public void setCreated(org.joda.time.ReadableInstant created)
Sets the time the schedule was created

Parameters:
created - Time the schedule was created

getCreated

public org.joda.time.ReadableInstant getCreated()
Returns:
Returns the schedule creation time

setVersion

public void setVersion(int version)
Sets the version number of this schedule

Parameters:
version - Schedule version number

getVersion

public int getVersion()
Returns:
Returns the schedule version

setOriginator

public void setOriginator(java.lang.String originator)
Sets the originator for this schedule

Parameters:
originator - Schedule originator

getOriginator

public java.lang.String getOriginator()
Returns:
Returns the schedule originator

setScope

public void setScope(Scope scope)
Sets the schedule scope

Parameters:
scope - Schedule scope

getScope

public Scope getScope()
Returns:
Returns the schedule scope

addProgramme

public void addProgramme(Programme programme)
Add a programme to the schedule

Parameters:
programme - Programme to add

getProgrammes

public java.util.Collection<Programme> getProgrammes()
Returns:
Returns all programmes in this schedule

removeProgramme

public void removeProgramme(Programme programme)
Remove a programme from the schedule

Parameters:
programme - Programme to remove

clearProgrammes

public void clearProgrammes()
Clears all programmes from the schedule


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.