Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 6 7 package org.contineo.forms; 8 9 import javax.servlet.http.HttpServletRequest ; 10 import org.apache.struts.action.ActionMapping; 11 import org.apache.struts.upload.FormFile; 12 import org.apache.struts.validator.ValidatorForm; 13 17 public class CheckinForm extends ValidatorForm { 18 19 private static final long serialVersionUID = 1L; 20 21 24 private String docName; 25 26 30 private FormFile file; 31 32 35 private String versionDesc; 36 39 private String type; 40 private Integer docid; 41 42 43 public CheckinForm() { 44 docName = ""; 45 file = null; 46 versionDesc = ""; 47 type = "oldversion"; 48 docid = new Integer (-1); 49 } 50 51 55 public String getDocName() { 56 return docName; 57 } 58 59 63 public FormFile getFile() { 64 return file; 65 } 66 67 71 public String getVersionDesc() { 72 return versionDesc; 73 } 74 75 79 public String getType() { 80 return type; 81 } 82 83 84 public boolean isRelease() { 85 if (type.equals("release")) 86 return true; 87 else 88 return false; 89 } 90 91 public boolean isSubversion() { 92 if (type.equals("subversion")) 93 return true; 94 else 95 return false; 96 } 97 98 public boolean isOldversion() { 99 if (type.equals("oldversion")) 100 return true; 101 else 102 return false; 103 } 104 105 109 public Integer getDocid() { 110 return docid; 111 } 112 113 117 public void setDocName(String name) { 118 docName = name; 119 } 120 121 125 public void setFile(FormFile ffile) { 126 file = ffile; 127 } 128 129 133 public void setVersionDesc(String vdesc) { 134 versionDesc = vdesc; 135 } 136 137 141 public void setType(String typ) { 142 type = typ; 143 } 144 145 149 public void setDocid(Integer id) { 150 docid = id; 151 } 152 153 154 public void reset(ActionMapping mapping, HttpServletRequest request) { 155 docName = ""; 156 file = null; 157 versionDesc = ""; 158 type = "oldversion"; 159 docid = new Integer (-1); 160 } 161 } 162
| Popular Tags
|