|
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.PlayerIdDetails
public class PlayerIdDetails
The definition of a player reference.
PlayerScoreBean
,
Serialized FormConstructor Summary | |
---|---|
PlayerIdDetails()
|
Method Summary | |
---|---|
void |
accept(XmlVisitor visitor)
Accepts the specified XML visitor. |
String |
getDependencyPhaseId()
Returns the dependency phase identifier allowing to choose the player (which is not known now in this case). |
int |
getDependencyPhaseRank()
Returns the rank in the dependency phase allowing to choose the player (which is not known now in this case). |
Integer |
getDependencyPhaseRankInteger()
Returns the rank in the dependency phase allowing to choose the player (which is not known now in this case). |
Integer |
getRankInteger()
Returns the player rank value. |
Integer |
getResultInteger()
Returns the current player result. |
String |
getResultString()
Returns the current player result, as a string. |
Integer |
getScoreInteger()
Returns the player score. |
UsersDetails |
getUsers()
Returns a list of users optionally attached to this player reference. |
void |
setDependencyPhaseId(String id)
Initializes the dependency phase identifier allowing to choose the player (which is not known now in this case). |
void |
setDependencyPhaseRankInteger(Integer rank)
Initializes the rank in the dependency phase allowing to choose the player (which is not known now in this case). |
void |
setRank(int rank)
Initializes the player rank value. |
void |
setRankInteger(Integer rank)
Initializes the player rank value. |
void |
setResult(int result)
Initializes the player result value. |
void |
setResultInteger(Integer result)
Initializes the player result value. |
void |
setResultString(String result)
Initializes the player result value, as a string. |
void |
setScore(int score)
Initializes the player score value. |
void |
setScoreInteger(Integer score)
Initializes the player score value. |
void |
setUsers(UsersDetails users)
Initializes the list of users optionally attached to this player reference. |
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 PlayerIdDetails()
Method Detail |
---|
public String getDependencyPhaseId()
null
.setDependencyPhaseId(String)
,
getDependencyPhaseRankInteger()
public void setDependencyPhaseId(String id)
id
- a phase identifier. May be null
.getDependencyPhaseId()
,
setDependencyPhaseRankInteger(Integer)
public Integer getDependencyPhaseRankInteger()
null
. If not, shall be strictly greater than 0.setDependencyPhaseRankInteger(Integer)
,
getDependencyPhaseRank()
,
getDependencyPhaseId()
public void setDependencyPhaseRankInteger(Integer rank)
rank
- a rank value. May be null
. If not, shall be strictly greater than 0.
IllegalArgumentException
- if rank
is not null
, but its value is not strictly greater than 0.getDependencyPhaseRankInteger()
,
setDependencyPhaseId(String)
public int getDependencyPhaseRank()
getDependencyPhaseRankInteger()
public void setScoreInteger(Integer score)
score
- a score value. May be null
.getScoreInteger()
,
setScore(int)
public Integer getScoreInteger()
null
.setScoreInteger(Integer)
public void setScore(int score)
score
- a score value.setScoreInteger(Integer)
public void setRankInteger(Integer rank)
rank
- a rank value. May be null
. If not, shall be strictly greater than 0.
IllegalArgumentException
- if rank
is not null
, but its value is not strictly greater than 0.getRankInteger()
,
setRank(int)
public Integer getRankInteger()
null
. If not, shall be strictly greater than 0.setRankInteger(Integer)
public void setRank(int rank)
rank
- a rank value. Shall be strictly greater than 0.
IllegalArgumentException
- if rank
is not strictly greater than 0.setRankInteger(Integer)
public void setResult(int result)
result
- a result value.setResultInteger(Integer)
,
setResultString(String)
public void setResultInteger(Integer result)
result
- a result value. May be null
.getResultInteger()
,
setResult(int)
,
setResultString(String)
public Integer getResultInteger()
null
.setResultInteger(Integer)
,
getResultString()
public void setResultString(String result)
result
- a result value. May be null
.
NumberFormatException
- if the string cannot be parsed as an integer.getResultString()
,
setResultInteger(Integer)
,
setResult(int)
public String getResultString()
null
.setResultString(String)
,
getResultInteger()
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 |