com.gcapmedia.dab.epg
Class ProgrammeGroup

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

public class ProgrammeGroup
extends java.lang.Object

Describes a grouping of programmes, programme events or other groups.


Nested Class Summary
static class ProgrammeGroup.Type
          Indicates the type of programme grouping
 
Constructor Summary
ProgrammeGroup()
          Create a new programme group
 
Method Summary
 void addGenre(Genre genre)
          Adds a genre to the programme
 void addLink(Link link)
          Add a link from this programme to additional information or content
 void addMembership(Membership membership)
          Add a membership to this programme
 void clearGenres()
          Clears all genre from the programme
 void clearLinks()
          Clear all links from this programme
 void clearMemberships()
          Clears all memberships from this programme
 java.util.List<Genre> getGenres()
           
 Crid getId()
           
 Keywords getKeywords()
           
 java.util.Collection<Link> getLinks()
           
 MediaGroup getMedia()
           
 java.util.Collection<Membership> getMemberships()
           
 NameGroup getNames()
           
 int getNumberOfItems()
           
 int getShortId()
          Gets the value of the shortId property.
 ProgrammeGroup.Type getType()
           
 int getVersion()
           
 void removeGenre(Genre genre)
          Removes a genre from the programme
 void removeLink(Link link)
          Remove a link from this programme
 void removeMembership(Membership membership)
          Removes a membership from this programme
 void setId(Crid id)
          Sets the programme Content Reference ID (CRID)
 void setKeywords(Keywords keywords)
          Set the keywords associated with this programme
 void setNumberOfItems(int numOfItems)
          Sets the number of items in the group
 void setShortId(int value)
          Sets the value of the shortId property.
 void setType(ProgrammeGroup.Type type)
          Set the programme group type
 void setVersion(int version)
          Sets the version number of this schedule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgrammeGroup

public ProgrammeGroup()
Create a new programme group

Method Detail

getNames

public NameGroup getNames()
Returns:
Returns the name group for this programme group

getMedia

public MediaGroup getMedia()
Returns:
Returns media descriptions related to this programme

addGenre

public void addGenre(Genre genre)
Adds a genre to the programme

Parameters:
genre - Genre to add

clearGenres

public void clearGenres()
Clears all genre from the programme


removeGenre

public void removeGenre(Genre genre)
Removes a genre from the programme

Parameters:
genre - Genre to remove

getGenres

public java.util.List<Genre> getGenres()
Returns:
Returns the programme genres

setKeywords

public void setKeywords(Keywords keywords)
Set the keywords associated with this programme

Parameters:
keywords - Keywords to use

getKeywords

public Keywords getKeywords()
Returns:
Returns the keywords associated with this programme

getMemberships

public java.util.Collection<Membership> getMemberships()
Returns:
Returns memberships this programme has

addMembership

public void addMembership(Membership membership)
Add a membership to this programme

Parameters:
membership - Membership to add

removeMembership

public void removeMembership(Membership membership)
Removes a membership from this programme

Parameters:
membership - Membership to remove

clearMemberships

public void clearMemberships()
Clears all memberships from this programme


getLinks

public java.util.Collection<Link> getLinks()
Returns:
Returns links to additional information or content

addLink

public void addLink(Link link)
Add a link from this programme to additional information or content

Parameters:
link - Link to add

removeLink

public void removeLink(Link link)
Remove a link from this programme

Parameters:
link - Link to remove

clearLinks

public void clearLinks()
Clear all links from this programme


getShortId

public int getShortId()
Gets the value of the shortId property.


setShortId

public void setShortId(int value)
Sets the value of the shortId property.


setId

public void setId(Crid id)
Sets the programme Content Reference ID (CRID)

Parameters:
id - CRID to set

getId

public Crid getId()
Returns:
Returns the programme Content Reference ID (CRID)

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

getType

public ProgrammeGroup.Type getType()
Returns:
Returns the programme group type

setType

public void setType(ProgrammeGroup.Type type)
Set the programme group type

Parameters:
type - Programme group type

getNumberOfItems

public int getNumberOfItems()
Returns:
Returns the number of items in the group

setNumberOfItems

public void setNumberOfItems(int numOfItems)
Sets the number of items in the group

Parameters:
numOfItems - Number of items in the group


Copyright © 2007. All Rights Reserved.