Package ejava.projects.eleague.xml
Class SampleGen
- java.lang.Object
-
- ejava.projects.eleague.xml.SampleGen
-
public class SampleGen extends Object
This class provides the ability to generate a sample set of League DTOs and XML document. Of note, this is is to be used for initial implementation testing only. It is not the official data set required for submission with the project.
-
-
Constructor Summary
Constructors Constructor Description SampleGen()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assignTeamsToDivision(Club club, Season season)
protected Club
createClub(ELeague league, String name, String rep, int teams)
ELeague
createLeague()
protected LeagueMetadata
createLeagueMetadata(ELeague league)
protected Season
createSeason(ELeague league, int year)
protected Venue
getField(ELeague league, Team team)
protected long
nextId()
protected String
nextRefId()
protected void
reportScores(Season season)
protected void
scheduleSeason(ELeague league, Season season)
-
-
-
Method Detail
-
nextRefId
protected String nextRefId()
-
nextId
protected long nextId()
-
reportScores
protected void reportScores(Season season)
-
createLeagueMetadata
protected LeagueMetadata createLeagueMetadata(ELeague league)
-
-