1 package crisp.wbwiki.client; 2 3 import com.google.gwt.user.client.rpc.IsSerializable; 4 5 /** 6 * A DTO for page data 7 * 8 * TODO move this to a separate package, for example crisp.wbwiki.domain 9 * @author Henrik Kniberg 10 */ 11 public class Page implements IsSerializable { 12 private int version; 13 private String content; 14 15 public Page() { 16 } 17 18 public Page(int version, String content) { 19 super(); 20 this.version = version; 21 this.content = content; 22 } 23 24 /** 25 * @return the content 26 */ 27 public String getContent() { 28 return content; 29 } 30 31 /** 32 * @return the version 33 */ 34 public int getVersion() { 35 return version; 36 } 37 public void setContent(String content) { 38 this.content = content; 39 } 40 41 public void setVersion(int version) { 42 this.version = version; 43 } 44 45 public String toString() { 46 return "[" + version + "] " + content; 47 } 48 }