// ** This class was generated with DemFGen (vers:02/27/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Mattress */ public class Mattress extends PlaceWithMoney{ public final Money m; /** Construct a(n) Mattress Instance */ public Mattress(Money m){ this.m = m; } /** Is the given Mattress Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof Mattress))return false; Mattress oo = (Mattress)o; return (((Object)m).equals(oo.m)); } /** Parse an instance of Mattress from the given String */ public static Mattress parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Mattress(); } /** Parse an instance of Mattress from the given Stream */ public static Mattress parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Mattress(); } /** Parse an instance of Mattress from the given Reader */ public static Mattress parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Mattress(); } /** Field Class for Mattress.m */ public static class m 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); } }