|
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.EventDetails
public class EventDetails
A championship's event XML representation.
EventBean
,
Serialized FormConstructor Summary | |
---|---|
EventDetails()
|
Method Summary | |
---|---|
void |
accept(XmlVisitor visitor)
Accepts the specified XML visitor. |
void |
addPlayerId(PlayerIdDetails playerId)
Adds a player to this event. |
PlayerIdDetails |
findPlayerIdByDependencyPhase(String phaseRef,
int phaseRank)
Searches for a player reference in this XML description that matches the input parameters. |
PlayerIdDetails |
findPlayerIdById(String id)
Searches for a player reference in this XML description that matches the input parameter. |
String |
getDateString()
Returns the event's date as a string. |
LocationDetails |
getLocation()
Returns the event's location. |
List<PlayerIdDetails> |
getPlayerIds()
Returns a list of players optionally attached to this event. |
ScoreModelDetails |
getScoreModel()
Returns the score processing model. |
UsersDetails |
getUsers()
Returns a list of users optionally attached to this event. |
void |
setDateString(String date)
Initializes the event's date as a string. |
void |
setLocation(LocationDetails location)
Initializes the event's location. |
void |
setScoreModel(ScoreModelDetails model)
Initializes the score processing model. |
void |
setUsers(UsersDetails users)
Initializes the list of users optionally attached to this event. |
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 EventDetails()
Method Detail |
---|
public void setDateString(String date)
yyyy-MM-dd'T'HH:mm'Z'
": an ISO8601 date-time with explicit (Zulu) time zone;yyyy-MM-dd'T'HH:mm
": an ISO8601 date-time with no time zone specifier: the location's time zone will be used.
date
- a date as a string. Shall not be null
.
NullPointerException
- if date
is null
.getDateString()
public String getDateString()
null
if not yet initialized.setDateString(String)
public ScoreModelDetails getScoreModel()
HasScoreModel
getScoreModel
in interface HasScoreModel
null
.
IllegalStateException
- if no score processing model could be found in this instance or its hierarchy.HasScoreModel.setScoreModel(ScoreModelDetails)
public void setScoreModel(ScoreModelDetails model)
HasScoreModel
setScoreModel
in interface HasScoreModel
model
- a score processing model. May be null
.HasScoreModel.getScoreModel()
public void setLocation(LocationDetails location)
location
- a location. Shall not be null
.
NullPointerException
- if location
is null
.getLocation()
public LocationDetails getLocation()
null
if not yet initialized.setLocation(LocationDetails)
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 PlayerIdDetails findPlayerIdByDependencyPhase(String phaseRef, int phaseRank)
phaseRef
- a phase reference identifier. Must not be null
.phaseRank
- the rank in the dependency phase.
null
if none was found.
NullPointerException
- if phaseRef
is null
.public PlayerIdDetails findPlayerIdById(String id)
id
- a player identifier. Must not be null
.
null
if none was found.
NullPointerException
- if id
is null
.public UsersDetails getUsers()
null
.setUsers(UsersDetails)
public void setUsers(UsersDetails users)
users
- a list of users. May be null
.getUsers()
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 |