|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.betty.xml.Child
christophedelory.betty.xml.IdDetails
christophedelory.betty.xml.ChampionshipDetails
public class ChampionshipDetails
The championship XML representation.
ChampionshipBean
,
Serialized FormConstructor Summary | |
---|---|
ChampionshipDetails()
|
Method Summary | |
---|---|
void |
accept(XmlVisitor visitor)
Accepts the specified XML visitor. |
void |
addPhase(PhaseDetails phase)
Adds a phase to this championship. |
PhaseDetails |
findPhaseById(String id)
Searches for a phase in this XML description that matches the input parameter. |
BetModelDetails |
getBetModel()
Returns the bet processing model. |
LocationsDetails |
getLocations()
Returns a list of locations optionally attached to this championship. |
List<PhaseDetails> |
getPhases()
Returns the list of phases in this championship. |
PlayersDetails |
getPlayers()
Returns a list of players optionally attached to this championship. |
RankModelDetails |
getRankModel()
Returns the rank processing model. |
ResourcesDetails |
getResources()
Returns the list of resources attached to this championship. |
ScoreModelDetails |
getScoreModel()
Returns the score processing model. |
String |
getStartDateString()
Returns the championship start date as a string. |
UsersDetails |
getUsers()
Returns a list of users optionally attached to this championship. |
void |
setBetModel(BetModelDetails model)
Initializes the bet processing model. |
void |
setLocations(LocationsDetails locations)
Initializes the list of locations optionally attached to this championship. |
void |
setPlayers(PlayersDetails players)
Initializes the list of players optionally attached to this championship. |
void |
setRankModel(RankModelDetails model)
Initializes the rank processing model. |
void |
setResources(ResourcesDetails resources)
Initializes the list of resources attached to this championship. |
void |
setScoreModel(ScoreModelDetails model)
Initializes the score processing model. |
void |
setStartDateString(String date)
Initializes the championship start date as a string. |
void |
setUsers(UsersDetails users)
Initializes the list of users optionally attached to this championship. |
Methods inherited from class christophedelory.betty.xml.IdDetails |
---|
addDescription, addLink, findDescriptionByLocale, findLinkByLocale, getDescriptions, getId, getLinks, setId |
Methods inherited from class christophedelory.betty.xml.Child |
---|
getParent, getRoot, getRoot, getVersion, setParent, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface christophedelory.betty.xml.XmlRoot |
---|
getVersion, setVersion |
Constructor Detail |
---|
public ChampionshipDetails()
Method Detail |
---|
public void setStartDateString(String date)
yyyy-MM-dd'T'HH:mm'Z'
" (an ISO8601 date-time with explicit (Zulu) time zone).
date
- a date as a string. May be null
.getStartDateString()
public String getStartDateString()
null
.setStartDateString(java.lang.String)
public ResourcesDetails getResources()
null
.setResources(ResourcesDetails)
public void setResources(ResourcesDetails resources)
resources
- a list of resources. May be null
.getResources()
public ScoreModelDetails getScoreModel()
HasScoreModel
getScoreModel
in interface HasScoreModel
null
.HasScoreModel.setScoreModel(ScoreModelDetails)
public void setScoreModel(ScoreModelDetails model)
HasScoreModel
setScoreModel
in interface HasScoreModel
model
- a score processing model. May be null
.HasScoreModel.getScoreModel()
public RankModelDetails getRankModel()
HasRankModel
getRankModel
in interface HasRankModel
null
.HasRankModel.setRankModel(RankModelDetails)
public void setRankModel(RankModelDetails model)
HasRankModel
setRankModel
in interface HasRankModel
model
- a rank processing model. May be null
.HasRankModel.getRankModel()
public BetModelDetails getBetModel()
null
.setBetModel(BetModelDetails)
public void setBetModel(BetModelDetails model)
model
- a bet processing model. Shall not be null
.
NullPointerException
- if model
is null
.getBetModel()
public LocationsDetails getLocations()
null
.setLocations(LocationsDetails)
public void setLocations(LocationsDetails locations)
locations
- a list of locations. May be null
.getLocations()
public PlayersDetails getPlayers()
null
.setPlayers(PlayersDetails)
public void setPlayers(PlayersDetails players)
players
- a list of players. May be null
.getPlayers()
public UsersDetails getUsers()
null
.setUsers(UsersDetails)
public void setUsers(UsersDetails users)
users
- a list of users. May be null
.getUsers()
public List<PhaseDetails> getPhases()
null
.addPhase(PhaseDetails)
public void addPhase(PhaseDetails phase)
phase
- a phase. Shall not be null
.
NullPointerException
- if phase
is null
.getPhases()
public PhaseDetails findPhaseById(String id)
id
- a phase identifier. Must not be null
.
null
if none was found.
NullPointerException
- if id
is null
.public void accept(XmlVisitor visitor) throws Exception
IdDetails
accept
in interface XmlRoot
accept
in class IdDetails
visitor
- a visitor. Shall not be null
.
NullPointerException
- if visitor
is null
.
Exception
- if any error occurs during the visit.
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |