// ** This class was generated with DemFGen (vers:11/17/2009) namespace edu.neu.ccs.demeterf.http.classes{ using edu.neu.ccs.demeterf.lib; using System.Net.Sockets; using System.Text; using System.IO; using System; /** Representation of BaseURL */ public class BaseURL : URL{ protected readonly URL rest; /** Construct a(n) BaseURL Instance */ public BaseURL(URL rest){ this.rest = rest; } /** Is the given object Equal to this BaseURL? */ public override bool Equals(Object o){ if(!(o is BaseURL))return false; if(o == this)return true; BaseURL oo = (BaseURL)o; return (rest.Equals(oo.rest)); } /** Parse an instance of BaseURL from the given String */ public static new BaseURL Parse(String inpt) { return new TheParser(new System.IO.StringReader(inpt)).parse_BaseURL(); } /** Parse an instance of BaseURL from the given Stream */ public static new BaseURL Parse(System.IO.Stream inpt) { return new TheParser(inpt).parse_BaseURL(); } /** Parse an instance of BaseURL from the given Reader */ public static new BaseURL Parse(System.IO.TextReader inpt) { return new TheParser(inpt).parse_BaseURL(); } /** Field Class for BaseURL.rest */ public class restF : edu.neu.ccs.demeterf.Fields.any{} /** Return the URLs Arguments */ public override Map urlArgs(){ return rest.urlArgs(); } /** Remove the URL Arguments */ public override String trimArgs(){ return "/"+rest.trimArgs(); } /** DGP method from Class PrintToString */ public override String ToString(){ return global::edu.neu.ccs.demeterf.http.classes.PrintToString.PrintToStringM(this); } /** Getter for field BaseURL.rest */ public URL GetRest(){ return rest; } } }