public class BasicTournamentImpl extends Object implements BasicTournament
Constructor and Description |
---|
BasicTournamentImpl(Urn id,
Urn sportId,
List<Locale> locales,
SportEventCache sportEventCache,
SportEntityFactory sportEntityFactory,
ExceptionHandlingStrategy exceptionHandlingStrategy)
Initializes a new
BasicTournamentImpl instance |
Modifier and Type | Method and Description |
---|---|
CategorySummary |
getCategory()
Returns a
CategorySummary representing the category associated with the current instance |
List<Competitor> |
getCompetitors()
Returns a
List of competitors that participate in the sport event
associated with the current instance |
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 |
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 BasicTournamentImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy)
BasicTournamentImpl
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 instancesportEntityFactory
- 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 BasicTournament
CategorySummary
representing the category associated with the current instancepublic List<Competitor> getCompetitors()
List
of competitors that participate in the sport event
associated with the current instancegetCompetitors
in interface BasicTournament
List
of competitors that participate in the sport event
associated with the current instancepublic Boolean isExhibitionGames()
Boolean
specifying if the tournament is exhibition gameisExhibitionGames
in interface BasicTournament
Boolean
specifying if the tournament is exhibition gamepublic 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<Competition> getSchedule()
List
of events that belong to the associated tournamentgetSchedule
in interface BasicTournament
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.