|
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.UserDetails
public class UserDetails
The definition of a user.
UserBean
,
BetBean
,
Serialized FormConstructor Summary | |
---|---|
UserDetails()
|
Method Summary | |
---|---|
void |
accept(XmlVisitor visitor)
Accepts the specified XML visitor. |
Boolean |
getIsAdmin()
Specifies that this user is an administrator or not. |
Boolean |
getIsBetter()
Specifies that this user is a better or not. |
String |
getPassword()
Returns the user password. |
int |
getRank()
Returns the better rank value. |
Integer |
getRankInteger()
Returns the better rank value. |
Integer |
getResultInteger()
Returns the better result. |
int |
getScore()
Returns the better score. |
Integer |
getScoreInteger()
Returns the better score. |
boolean |
isAdmin()
Specifies that this user is an administrator or not. |
boolean |
isBetter()
Specifies that this user is a better or not. |
void |
setIsAdmin(boolean isAdmin)
Specifies if this user is an administrator or not. |
void |
setIsAdmin(Boolean isAdmin)
Specifies if this user is an administrator or not. |
void |
setIsBetter(boolean isBetter)
Specifies if this user is a better or not. |
void |
setIsBetter(Boolean isBetter)
Specifies if this user is a better or not. |
void |
setPassword(String password)
Initializes the user password. |
void |
setRank(int rank)
Initializes the better rank value. |
void |
setRankInteger(Integer rank)
Initializes the better rank value. |
void |
setResult(int result)
Initializes the result value. |
void |
setResultInteger(Integer result)
Initializes the result value. |
void |
setScore(int score)
Initializes the score value. |
void |
setScoreInteger(Integer score)
Initializes the score value. |
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 UserDetails()
Method Detail |
---|
public Boolean getIsBetter()
Boolean.TRUE
if this user is a better, Boolean.FALSE
otherwise. May be null
.setIsBetter(Boolean)
,
isBetter()
public void setIsBetter(Boolean isBetter)
isBetter
- Boolean.TRUE
if this user is a better, Boolean.FALSE
otherwise. May be null
.getIsBetter()
,
setIsBetter(boolean)
public boolean isBetter()
false
.
true
if this user is a better, false
otherwise.setIsBetter(boolean)
,
getIsBetter()
public void setIsBetter(boolean isBetter)
isBetter
- true
if this user is a better, false
otherwise.isBetter()
,
setIsBetter(Boolean)
public Boolean getIsAdmin()
Boolean.TRUE
if this user is an administrator, Boolean.FALSE
otherwise. May be null
.setIsAdmin(Boolean)
,
isAdmin()
public void setIsAdmin(Boolean isAdmin)
isAdmin
- Boolean.TRUE
if this user is an administrator, Boolean.FALSE
otherwise. May be null
.getIsAdmin()
,
setIsAdmin(boolean)
public boolean isAdmin()
false
.
true
if this user is an administrator, false
otherwise.setIsAdmin(boolean)
,
getIsAdmin()
public void setIsAdmin(boolean isAdmin)
isAdmin
- true
if this user is an administrator, false
otherwise.isAdmin()
,
setIsAdmin(Boolean)
public String getPassword()
null
.setPassword(String)
public void setPassword(String password)
password
- a password. May be null
.getPassword()
public void setScoreInteger(Integer score)
score
- a score value. May be null
.getScoreInteger()
,
setScore(int)
public Integer getScoreInteger()
null
.setScoreInteger(Integer)
,
getScore()
public void setScore(int score)
score
- a score value.getScore()
,
setScoreInteger(Integer)
public int getScore()
Integer.MIN_VALUE
.
setScore(int)
,
getScoreInteger()
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)
,
getRank()
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)
,
getRank()
public int getRank()
setRank(int)
,
getRankInteger()
public void setResult(int result)
result
- a result value.setResultInteger(Integer)
public void setResultInteger(Integer result)
result
- a result value. May be null
.getResultInteger()
,
setResult(int)
public Integer getResultInteger()
null
.setResultInteger(Integer)
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 |