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 voidassignTeamsToDivision(Club club, Season season)protected ClubcreateClub(ELeague league, String name, String rep, int teams)ELeaguecreateLeague()protected LeagueMetadatacreateLeagueMetadata(ELeague league)protected SeasoncreateSeason(ELeague league, int year)protected VenuegetField(ELeague league, Team team)protected longnextId()protected StringnextRefId()protected voidreportScores(Season season)protected voidscheduleSeason(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)
-
-