001 package crisp.wbwiki.client; 002 003 import com.google.gwt.user.client.rpc.IsSerializable; 004 005 /** 006 * A DTO for page data 007 * 008 * TODO move this to a separate package, for example crisp.wbwiki.domain 009 * @author Henrik Kniberg 010 */ 011 public class Page implements IsSerializable { 012 private int version; 013 private String content; 014 015 public Page() { 016 } 017 018 public Page(int version, String content) { 019 super(); 020 this.version = version; 021 this.content = content; 022 } 023 024 /** 025 * @return the content 026 */ 027 public String getContent() { 028 return content; 029 } 030 031 /** 032 * @return the version 033 */ 034 public int getVersion() { 035 return version; 036 } 037 public void setContent(String content) { 038 this.content = content; 039 } 040 041 public void setVersion(int version) { 042 this.version = version; 043 } 044 045 public String toString() { 046 return "[" + version + "] " + content; 047 } 048 }