예제 #1
0
  @Override
  public Employee parse(String s, Locale locale) throws ParseException {
    Collection<Employee> findEmployee = employeeService.listEmployee();
    for (Employee e : findEmployee) {
      if (e.getName().equalsIgnoreCase(s)) {
        return e;
      }
    }

    return null;
  }
예제 #2
0
 @Override
 public String print(Employee employee, Locale locale) {
   return employee.getName();
 }