// ** 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 Apartment */ public class Apartment{ public final Kitchen kitchen; public final Bedrooms bedrooms; public final Bathroom bathroom; /** Construct a(n) Apartment Instance */ public Apartment(Kitchen kitchen, Bedrooms bedrooms, Bathroom bathroom){ this.kitchen = kitchen; this.bedrooms = bedrooms; this.bathroom = bathroom; } /** Is the given Apartment Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof Apartment))return false; Apartment oo = (Apartment)o; return (((Object)kitchen).equals(oo.kitchen))&&(((Object)bedrooms).equals(oo.bedrooms))&&(((Object)bathroom).equals(oo.bathroom)); } /** Parse an instance of Apartment from the given String */ public static Apartment parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Apartment(); } /** Parse an instance of Apartment from the given Stream */ public static Apartment parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Apartment(); } /** Parse an instance of Apartment from the given Reader */ public static Apartment parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Apartment(); } /** Field Class for Apartment.kitchen */ public static class kitchen extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Apartment.bedrooms */ public static class bedrooms extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Apartment.bathroom */ public static class bathroom 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); } }