public PassportWrapper(Passport passport) { super(); this.setId(passport.getId()); this.setParId(passport.getParId()); this.setRname(passport.getRname()); this.setKname(passport.getKname()); this.setEname(passport.getEname()); this.setPasstype(passport.getPasstype()); }
public String toOption(Long selectedId) { StringBuilder stringBuilder = new StringBuilder("<option ") .append(getId().equals(selectedId) ? " selected " : "") .append(" value=\"") .append(getId() == null ? "" : getId().toString()) .append("\">"); stringBuilder .append(passport.getRname()) .append(" | ") .append(indicator.getRname()) .append(" | ") .append(measure != null ? measure.getRname() : "") .append("</option>"); return stringBuilder.toString(); }