public class TournamentImpl extends Object implements Tournament, PreloadableEntity
| Constructor and Description | 
|---|
TournamentImpl(Urn id,
              Urn sportId,
              List<Locale> locales,
              SportEventCache sportEventCache,
              SportEntityFactory sportEntityFactory,
              ExceptionHandlingStrategy exceptionHandlingStrategy)
Initializes a new  
TournamentImpl instance | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ensureSummaryIsFetchedForLanguages(List<Locale> languages,
                                  RequestOptions requestOptions)  | 
CategorySummary | 
getCategory()
Returns a  
CategorySummary representing the category associated with the current instance | 
CurrentSeasonInfo | 
getCurrentSeason()
Returns a  
CurrentSeasonInfo which contains data about the season in which the current instance
 tournament is happening | 
Urn | 
getId()
Returns an  
Urn uniquely identifying the tournament associated with the current instance | 
String | 
getName(Locale locale)
Returns the name of the current long term event translated to the specified language 
 | 
Urn | 
getReplacedBy()
Returns the  
Urn specifying the replacement sport event for the current instance | 
List<Competition> | 
getSchedule()
Returns a  
List of events that belong to the associated tournament | 
Date | 
getScheduledEndTime()
Returns the  
Date specifying when the sport event associated with the current
 instance was scheduled to end | 
Date | 
getScheduledTime()
Returns the  
Date specifying when the sport event associated with the current
 instance was scheduled | 
List<Season> | 
getSeasons()
Returns a list of associated tournament seasons 
 | 
SportSummary | 
getSport()
Returns a  
SportSummary instance representing the sport associated with the current instance | 
Urn | 
getSportId()
Returns the associated sport identifier
 (This method its overridden because the superclass SportEvent does not contain the sportId in all cases) 
 | 
TournamentCoverage | 
getTournamentCoverage()
Returns a  
TournamentCoverage instance which describes the associated tournament coverage information | 
Boolean | 
isExhibitionGames()
Returns the  
Boolean specifying if the tournament is exhibition game | 
Boolean | 
isStartTimeTbd()
Returns the  
Boolean specifying if the start time to be determined is set for the current instance | 
String | 
toString()
Returns a  
String describing the current Tournament instance | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdpublic TournamentImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy)
TournamentImpl instanceid - an Urn uniquely identifying the tournament associated with the current instancesportId - an Urn identifying the sport to which the tournament belongslocales - a List of all languages for this instancesportEventCache - the cache used to retrieve additional sport event datasportEntityFactory - a SportEntityFactory instance used to construct Competition instancesexceptionHandlingStrategy - the desired exception handling strategypublic String getName(Locale locale)
getName in interface SportEventlocale - - a Locale specifying in which language the name should be returnedpublic Date getScheduledTime()
Date specifying when the sport event associated with the current
 instance was scheduledgetScheduledTime in interface SportEventDate instance specifying when the sport event associated with the current
 instance was scheduledpublic Date getScheduledEndTime()
Date specifying when the sport event associated with the current
 instance was scheduled to endgetScheduledEndTime in interface SportEventDate instance specifying when the sport event associated with the current
 instance was scheduled to endpublic Boolean isStartTimeTbd()
Boolean specifying if the start time to be determined is set for the current instanceisStartTimeTbd in interface SportEventBoolean specifying if the start time to be determined is set for the current instancepublic Urn getReplacedBy()
Urn specifying the replacement sport event for the current instancegetReplacedBy in interface SportEventUrn specifying the replacement sport event for the current instancepublic CategorySummary getCategory()
CategorySummary representing the category associated with the current instancegetCategory in interface TournamentCategorySummary representing the category associated with the current instancepublic CurrentSeasonInfo getCurrentSeason()
CurrentSeasonInfo which contains data about the season in which the current instance
 tournament is happeninggetCurrentSeason in interface TournamentCurrentSeasonInfo which provides data about the season in
           which the current instance tournament is happeningpublic SportSummary getSport()
SportSummary instance representing the sport associated with the current instancegetSport in interface LongTermEventSportSummary instance representing the sport associated with the current instancepublic TournamentCoverage getTournamentCoverage()
TournamentCoverage instance which describes the associated tournament coverage informationgetTournamentCoverage in interface LongTermEventTournamentCoverage instance describing the tournament coverage informationpublic Urn getSportId()
getSportId in interface SportEventpublic List<Season> getSeasons()
getSeasons in interface Tournamentpublic Boolean isExhibitionGames()
Boolean specifying if the tournament is exhibition gameisExhibitionGames in interface TournamentBoolean specifying if the tournament is exhibition gamepublic List<Competition> getSchedule()
List of events that belong to the associated tournamentgetSchedule in interface TournamentList of events that belong to the associated tournamentpublic String toString()
String describing the current Tournament instancetoString in class ObjectString describing the current Tournament instancepublic void ensureSummaryIsFetchedForLanguages(List<Locale> languages, RequestOptions requestOptions)
ensureSummaryIsFetchedForLanguages in interface PreloadableEntitypublic Urn getId()
Urn uniquely identifying the tournament associated with the current instancegetId in interface SportEventUrn uniquely identifying the tournament associated with the current instanceCopyright © 2016–2025. All rights reserved.