// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; /** Representation of ProvideInstanceExpectation */ public class ProvideInstanceExpectation extends Expectation2{ protected final Claim belongsTo; /** Construct a(n) ProvideInstanceExpectation Instance */ public ProvideInstanceExpectation(Claim belongsTo){ this.belongsTo = belongsTo; } /** Is the given object Equal to this ProvideInstanceExpectation? */ public boolean equals(Object o){ if(!(o instanceof ProvideInstanceExpectation))return false; if(o == this)return true; ProvideInstanceExpectation oo = (ProvideInstanceExpectation)o; return (((Object)belongsTo).equals(oo.belongsTo)); } /** Parse an instance of ProvideInstanceExpectation from the given String */ public static ProvideInstanceExpectation parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_ProvideInstanceExpectation(); } /** Parse an instance of ProvideInstanceExpectation from the given Stream */ public static ProvideInstanceExpectation parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_ProvideInstanceExpectation(); } /** Parse an instance of ProvideInstanceExpectation from the given Reader */ public static ProvideInstanceExpectation parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_ProvideInstanceExpectation(); } /** Field Class for ProvideInstanceExpectation.belongsTo */ public static class belongsTo extends edu.neu.ccs.demeterf.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); } /** Updater for field ProvideInstanceExpectation.belongsTo */ public ProvideInstanceExpectation updateBelongsTo(Claim _belongsTo){ return new ProvideInstanceExpectation(_belongsTo); } /** Getter for field ProvideInstanceExpectation.belongsTo */ public Claim getBelongsTo(){ return belongsTo; } }