Package com.apps.ubc.cc.model

Examples of com.apps.ubc.cc.model.RMPModel


    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
   
    RMPModel rm = new RMPModel (profnames[i], "not found", "not found");
    if(!result.equals(""))
      rm =new RMPModel (profnames[i], result, WrapperUtils.RMP_INFO_URL.replace("<tid>", tid));
    System.out.println(rm.toString());
    out.add(rm);
    }
    return out; // method stub
  }
View Full Code Here


    List<RMPModel> rml = rs.getProfInfo(instructors);
    StringBuilder builder=new StringBuilder();
    builder.append("<rmp>\n");
    //String out = "<rmp>\n";
    for (Iterator<RMPModel> i = rml.iterator(); i.hasNext();) {
      RMPModel rm = i.next();
      builder.append("\t<instructor>\n");
      //out += "\t<instructor>\n";
      if(rm.getName().isEmpty())
        builder.append( "\t\t<name>Not available</name>\n");
        //out += "\t\t<name>Not available</name>\n";
      else
        builder.append("\t\t<name>" + rm.getName() + "</name>\n");
        //out += "\t\t<name>" + rm.getName() + "</name>\n";
      builder.append("\t\t<rating>" + rm.getRating() + "</rating>\n");
      //out += "\t\t<rating>" + rm.getRating() + "</rating>\n";
      builder.append("\t\t<url>" + rm.getUrl() + "</url>\n");
      builder.append("\t</instructor>\n");
//      out += "\t\t<url>" + rm.getUrl() + "</url>\n";
//      out += "\t</instructor>\n";
    }
    if (rml.size() == 0){
View Full Code Here

TOP

Related Classes of com.apps.ubc.cc.model.RMPModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.