// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Team */ public class Team{ protected final TeamName name; protected final List participant; /** Construct a(n) Team Instance */ public Team(TeamName name, List participant){ this.name = name; this.participant = participant; } /** Is the given object Equal to this Team? */ public boolean equals(Object o){ if(!(o instanceof Team))return false; if(o == this)return true; Team oo = (Team)o; return (((Object)name).equals(oo.name))&&(((Object)participant).equals(oo.participant)); } /** Parse an instance of Team from the given String */ public static Team parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Team(); } /** Parse an instance of Team from the given Stream */ public static Team parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Team(); } /** Parse an instance of Team from the given Reader */ public static Team parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Team(); } /** Field Class for Team.name */ public static class name extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Team.participant */ public static class participant extends edu.neu.ccs.demeterf.Fields.any{} /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** Updater for field Team.name */ public Team updateName(TeamName _name){ return new Team(_name, participant); } /** Updater for field Team.participant */ public Team updateParticipant(List _participant){ return new Team(name, _participant); } /** Getter for field Team.name */ public TeamName getName(){ return name; } /** Getter for field Team.participant */ public List getParticipant(){ return participant; } }