Class 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.
    • Field Detail

      • refid

        private int refid
      • id

        private long id
    • Constructor Detail

      • SampleGen

        public SampleGen()
    • Method Detail

      • nextRefId

        protected String nextRefId()
      • nextId

        protected long nextId()
      • createSeason

        protected Season createSeason​(ELeague league,
                                      int year)
      • assignTeamsToDivision

        protected void assignTeamsToDivision​(Club club,
                                             Season season)
      • scheduleSeason

        protected void scheduleSeason​(ELeague league,
                                      Season season)
      • reportScores

        protected void reportScores​(Season season)