|
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.PhaseDetails
public class PhaseDetails
The championship's phase XML representation.
PhaseBean
,
Serialized FormConstructor Summary | |
---|---|
PhaseDetails()
|
Method Summary | |
---|---|
void |
accept(XmlVisitor visitor)
Accepts the specified XML visitor. |
void |
addEvent(EventDetails event)
Adds an event to this phase. |
void |
addPlayerId(PlayerIdDetails playerId)
Adds a player to this phase. |
EventDetails |
findEventById(String id)
Searches for an event in this XML description that matches the input parameter. |
List<EventDetails> |
getEvents()
Returns the list of events in this phase. |
List<PlayerIdDetails> |
getPlayerIds()
Returns a list of players optionally attached to this phase. |
RankModelDetails |
getRankModel()
Returns the rank processing model. |
ScoreModelDetails |
getScoreModel()
Returns the score processing model. |
String |
getStartDateString()
Returns the phase start date as a string. |
UsersDetails |
getUsers()
Returns a list of users optionally attached to this phase. |
void |
setRankModel(RankModelDetails model)
Initializes the rank processing model. |
void |
setScoreModel(ScoreModelDetails model)
Initializes the score processing model. |
void |
setStartDateString(String date)
Initializes the phase start date as a string. |
void |
setUsers(UsersDetails users)
Initializes the list of users optionally attached to this phase. |
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 |
Constructor Detail |
---|
public PhaseDetails()
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 void setScoreModel(ScoreModelDetails model)
HasScoreModel
setScoreModel
in interface HasScoreModel
model
- a score processing model. May be null
.HasScoreModel.getScoreModel()
public ScoreModelDetails getScoreModel()
HasScoreModel
getScoreModel
in interface HasScoreModel
null
.HasScoreModel.setScoreModel(ScoreModelDetails)
public RankModelDetails getRankModel()
HasRankModel
getRankModel
in interface HasRankModel
null
.
IllegalStateException
- if no rank processing model could be found in this instance or its hierarchy.HasRankModel.setRankModel(RankModelDetails)
public void setRankModel(RankModelDetails model)
HasRankModel
setRankModel
in interface HasRankModel
model
- a rank processing model. May be null
.HasRankModel.getRankModel()
public void addPlayerId(PlayerIdDetails playerId)
playerId
- a player. Shall not be null
.
NullPointerException
- if playerId
is null
.getPlayerIds()
public List<PlayerIdDetails> getPlayerIds()
null
.addPlayerId(PlayerIdDetails)
public UsersDetails getUsers()
null
.setUsers(UsersDetails)
public void setUsers(UsersDetails users)
users
- a list of users. May be null
.getUsers()
public void addEvent(EventDetails event)
event
- an event. Shall not be null
.
NullPointerException
- if event
is null
.getEvents()
public List<EventDetails> getEvents()
null
.addEvent(EventDetails)
public EventDetails findEventById(String id)
id
- an event 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 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 |