// ** 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 Bedroom */ public class Bedroom{ public final Mattress mattress; /** Construct a(n) Bedroom Instance */ public Bedroom(Mattress mattress){ this.mattress = mattress; } /** Is the given Bedroom Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof Bedroom))return false; Bedroom oo = (Bedroom)o; return (((Object)mattress).equals(oo.mattress)); } /** Parse an instance of Bedroom from the given String */ public static Bedroom parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Bedroom(); } /** Parse an instance of Bedroom from the given Stream */ public static Bedroom parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Bedroom(); } /** Parse an instance of Bedroom from the given Reader */ public static Bedroom parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Bedroom(); } /** Field Class for Bedroom.mattress */ public static class mattress 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); } }