// ** This class was generated with DemFGen (vers:09/12/2009) package gen; import java.io.FileInputStream; import edu.neu.ccs.demeterf.lib.*; /** Representation of PlayerTransaction */ public class PlayerTransaction{ protected final String playerName; protected final List transactions; /** Construct a(n) PlayerTransaction Instance */ public PlayerTransaction(String playerName, List transactions){ this.playerName = playerName; this.transactions = transactions; } /** Is the given object Equal to this PlayerTransaction? */ public boolean equals(Object o){ if(!(o instanceof PlayerTransaction))return false; if(o == this)return true; PlayerTransaction oo = (PlayerTransaction)o; return (((Object)playerName).equals(oo.playerName))&&(((Object)transactions).equals(oo.transactions)); } /** Parse an instance of PlayerTransaction from the given String */ public static PlayerTransaction parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_PlayerTransaction(); } /** Parse an instance of PlayerTransaction from the given Stream */ public static PlayerTransaction parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_PlayerTransaction(); } /** Parse an instance of PlayerTransaction from the given Reader */ public static PlayerTransaction parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_PlayerTransaction(); } /** Field Class for PlayerTransaction.playerName */ public static class playerName extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for PlayerTransaction.transactions */ public static class transactions extends edu.neu.ccs.demeterf.control.Fields.any{} /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } }