// ** This class was generated with DemFGen (vers:06/04/2009) package http.gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import java.net.Socket; import java.net.ServerSocket; import java.io.IOException; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.InputStreamReader; import java.io.InputStream; /** Representation of BaseURL */ public class BaseURL extends URL{ public final URL rest; /** Construct a(n) BaseURL Instance */ public BaseURL(URL rest){ this.rest = rest; } /** Is the given object Equal to this BaseURL? */ public boolean equals(Object o){ if(!(o instanceof BaseURL))return false; if(o == this)return true; BaseURL oo = (BaseURL)o; return (((Object)rest).equals(oo.rest)); } /** Parse an instance of BaseURL from the given String */ public static BaseURL parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_BaseURL(); } /** Parse an instance of BaseURL from the given Stream */ public static BaseURL parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_BaseURL(); } /** Parse an instance of BaseURL from the given Reader */ public static BaseURL parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_BaseURL(); } /** Field Class for BaseURL.rest */ public static class rest extends edu.neu.ccs.demeterf.control.Fields.any{} /** Return the URLs Arguments */ public Map urlArgs(){ return rest.urlArgs(); } /** Remove the URL Arguments */ public String trimArgs(){ return "/"+rest.trimArgs(); } /** DGP method from Class PrintToString */ public String toString(){ return http.gen.PrintToString.PrintToStringM(this); } }