Betty v1.1.0

christophedelory.betty.xml
Class ChampionshipsDetails

java.lang.Object
  extended by christophedelory.betty.xml.Child
      extended by christophedelory.betty.xml.ChampionshipsDetails
All Implemented Interfaces:
XmlRoot, Serializable

public class ChampionshipsDetails
extends Child
implements XmlRoot

A list of championships.

Version:
$Revision: 98 $
Author:
Christophe Delory
See Also:
Serialized Form

Constructor Summary
ChampionshipsDetails()
           
 
Method Summary
 void accept(XmlVisitor visitor)
          Accepts the specified XML visitor.
 void addChampionship(ChampionshipDetails championship)
          Adds the specified championship to this list.
 List<ChampionshipDetails> getChampionships()
          Returns the list of championships.
 
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

ChampionshipsDetails

public ChampionshipsDetails()
Method Detail

getChampionships

public List<ChampionshipDetails> getChampionships()
Returns the list of championships.

Returns:
a list of championships. May be empty but not null.
See Also:
addChampionship(christophedelory.betty.xml.ChampionshipDetails)

addChampionship

public void addChampionship(ChampionshipDetails championship)
Adds the specified championship to this list.

Parameters:
championship - a championship. Shall not be null.
Throws:
NullPointerException - if championship is null.
See Also:
getChampionships()

accept

public void accept(XmlVisitor visitor)
            throws Exception
Description copied from interface: XmlRoot
Accepts the specified XML visitor.

Specified by:
accept in interface XmlRoot
Parameters:
visitor - a visitor. Shall not be null.
Throws:
NullPointerException - if visitor is null.
Exception - if any error occurs during the visit.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.