// ** This class was generated with DemFGen (vers:06/04/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Basket */ public class Basket extends Item{ public final Z z; public final List items; /** Construct a(n) Basket Instance */ public Basket(Z z, List items){ this.z = z; this.items = items; } /** Is the given object Equal to this Basket? */ public boolean equals(Object o){ if(!(o instanceof Basket))return false; if(o == this)return true; Basket oo = (Basket)o; return (((Object)z).equals(oo.z))&&(((Object)items).equals(oo.items)); } /** Parse an instance of Basket from the given String */ public static Basket parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Basket(); } /** Parse an instance of Basket from the given Stream */ public static Basket parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Basket(); } /** Parse an instance of Basket from the given Reader */ public static Basket parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Basket(); } /** Field Class for Basket.z */ public static class z extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Basket.items */ public static class items extends edu.neu.ccs.demeterf.control.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); } }