コード例 #1
0
 private static void startPlan(final Plan plan, final BufferedWriter out) throws IOException {
   out.write("\t\t<plan");
   if (plan.getScore() != null) {
     out.write(" score=\"");
     out.write(plan.getScore().toString());
     out.write("\"");
   }
   if (PersonUtils.isSelected(plan)) out.write(" selected=\"yes\"");
   else out.write(" selected=\"no\"");
   if (plan != null) {
     Plan p = plan;
     if ((p.getType() != null)) {
       out.write(" type=\"");
       out.write(p.getType());
       out.write("\"");
     }
   }
   out.write(">\n");
 }