public class TournamentImpl extends Object implements Tournament
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 |
---|---|
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, wait
getId
public 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 SportEvent
locale
- - 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 SportEvent
Date
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 SportEvent
Date
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 SportEvent
Boolean
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 SportEvent
Urn
specifying the replacement sport event for the current instancepublic CategorySummary getCategory()
CategorySummary
representing the category associated with the current instancegetCategory
in interface Tournament
CategorySummary
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 Tournament
CurrentSeasonInfo
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 LongTermEvent
SportSummary
instance representing the sport associated with the current instancepublic TournamentCoverage getTournamentCoverage()
TournamentCoverage
instance which describes the associated tournament coverage informationgetTournamentCoverage
in interface LongTermEvent
TournamentCoverage
instance describing the tournament coverage informationpublic Urn getSportId()
getSportId
in interface SportEvent
public List<Season> getSeasons()
getSeasons
in interface Tournament
public Boolean isExhibitionGames()
Boolean
specifying if the tournament is exhibition gameisExhibitionGames
in interface Tournament
Boolean
specifying if the tournament is exhibition gamepublic List<Competition> getSchedule()
List
of events that belong to the associated tournamentgetSchedule
in interface Tournament
List
of events that belong to the associated tournamentpublic String toString()
String
describing the current Tournament
instancetoString
in class Object
String
describing the current Tournament
instancepublic Urn getId()
Urn
uniquely identifying the tournament associated with the current instancegetId
in interface SportEvent
Urn
uniquely identifying the tournament associated with the current instanceCopyright © 2016–2025. All rights reserved.