1 package org.lanyonm.playground.web.command;
2
3 import javax.validation.constraints.NotNull;
4 import javax.validation.constraints.Size;
5
6
7
8
9 public class TodoCommand {
10
11 @NotNull
12 @Size(min = 0, max = 250)
13 private String title;
14
15
16
17
18 public String getTitle() {
19 return title;
20 }
21
22
23
24
25 public void setTitle(String title) {
26 this.title = title;
27 }
28
29 public String toString() {
30 return new StringBuilder("command.Todo: title=\"").append(this.title)
31 .append("\"").toString();
32 }
33 }