// ** 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.*; import java.lang.Integer; /** Representation of NegativeSecret */ public class NegativeSecret extends Protocol{ /** Construct a(n) NegativeSecret Instance */ public NegativeSecret(ProtocolName protocolName){ super(protocolName); } /** Is the given object Equal to this NegativeSecret? */ public boolean equals(Object o){ if(!(o instanceof NegativeSecret))return false; if(o == this)return true; NegativeSecret oo = (NegativeSecret)o; return (((Object)protocolName).equals(oo.protocolName)); } /** Parse an instance of NegativeSecret from the given String */ public static NegativeSecret parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_NegativeSecret(); } /** Parse an instance of NegativeSecret from the given Stream */ public static NegativeSecret parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_NegativeSecret(); } /** Parse an instance of NegativeSecret from the given Reader */ public static NegativeSecret parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_NegativeSecret(); } /** 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 NegativeSecret.protocolName */ public NegativeSecret updateProtocolName(ProtocolName _protocolName){ return new NegativeSecret(_protocolName); } /** Getter for field NegativeSecret.protocolName */ public ProtocolName getProtocolName(){ return protocolName; } }