|
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.PlayersDetails
public class PlayersDetails
A list of players
.
Constructor Summary | |
---|---|
PlayersDetails()
|
Method Summary | |
---|---|
void |
accept(XmlVisitor visitor)
Accepts the specified XML visitor. |
void |
addPlayer(PlayerDetails player)
Adds a player to this list. |
List<PlayerDetails> |
getPlayers()
Returns the list of players. |
boolean |
hasPlayer(String playerId)
Checks if this players list contains a player with the specified identifier. |
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 PlayersDetails()
Method Detail |
---|
public List<PlayerDetails> getPlayers()
null
.addPlayer(PlayerDetails)
public void addPlayer(PlayerDetails player)
player
- a player. Shall not be null
.
NullPointerException
- if player
is null
.getPlayers()
public boolean hasPlayer(String playerId)
playerId
- a player identifier. May be null
.
true
if a player with the specified identifier occurs in the list, false
otherwise.public void accept(XmlVisitor visitor) throws Exception
XmlRoot
accept
in interface XmlRoot
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 |