001package org.lanyonm.playground.web.command;
002
003import javax.validation.constraints.NotNull;
004import javax.validation.constraints.Size;
005
006/**
007 * @author lanyonm
008 */
009public class TodoCommand {
010
011        @NotNull
012        @Size(min = 0, max = 250)
013        private String title;
014
015        /**
016         * @return the title
017         */
018        public String getTitle() {
019                return title;
020        }
021
022        /**
023         * @param title the title to set
024         */
025        public void setTitle(String title) {
026                this.title = title;
027        }
028        
029        public String toString() {
030                return new StringBuilder("command.Todo: title=\"").append(this.title)
031                                .append("\"").toString();
032        }
033}