001: package com.ice.jcvsweb.form;
002:
003: import javax.servlet.http.HttpServletRequest;
004:
005: import org.apache.struts.action.Action;
006: import org.apache.struts.action.ActionErrors;
007: import org.apache.struts.action.ActionForm;
008: import org.apache.struts.action.ActionMapping;
009:
010: import com.ice.jcvsweb.bean.JCVSUser;
011:
012: public class EditViewForm extends ActionForm {
013: private String projectKey = null;
014: private String key = null;
015: private String name = null;
016: private String title = null;
017: private String cvsTag = null;
018: private String cvsModule = null;
019: private String jump = null;
020: private String description = null;
021:
022: public EditViewForm() {
023: }
024:
025: public String getKey() {
026: return this .key;
027: }
028:
029: public void setKey(String key) {
030: this .key = key;
031: }
032:
033: public String getProjectKey() {
034: return this .projectKey;
035: }
036:
037: public void setProjectKey(String projectKey) {
038: this .projectKey = projectKey;
039: }
040:
041: public String getName() {
042: return this .name;
043: }
044:
045: public void setName(String name) {
046: this .name = name;
047: }
048:
049: public String getTitle() {
050: return this .title;
051: }
052:
053: public void setTitle(String title) {
054: this .title = title;
055: }
056:
057: public String getCvsTag() {
058: return this .cvsTag;
059: }
060:
061: public void setCvsTag(String cvsTag) {
062: this .cvsTag = cvsTag;
063: }
064:
065: public String getCvsModule() {
066: return this .cvsModule;
067: }
068:
069: public void setCvsModule(String cvsModule) {
070: this .cvsModule = cvsModule;
071: }
072:
073: public String getJump() {
074: return this .jump;
075: }
076:
077: public void setJump(String jump) {
078: this .jump = jump;
079: }
080:
081: public String getDescription() {
082: return this .description;
083: }
084:
085: public void setDescription(String description) {
086: this .description = description;
087: }
088:
089: public void reset(ActionMapping mapping, HttpServletRequest request) {
090: this .key = null;
091: this .name = null;
092: this .title = null;
093: this .cvsTag = null;
094: this .cvsModule = null;
095: this .description = null;
096: }
097:
098: public ActionErrors validate(ActionMapping mapping,
099: HttpServletRequest request) {
100: ActionErrors errors = new ActionErrors();
101:
102: // UNDONE
103:
104: return errors;
105: }
106:
107: public String toString() {
108: StringBuffer buf = new StringBuffer();
109:
110: buf.append("[ ");
111: buf.append("key='").append(this .key).append("', ");
112: buf.append("name='").append(this .name).append("', ");
113: buf.append("title='").append(this .title).append("', ");
114: buf.append("cvsTag='").append(this .cvsTag).append("', ");
115: buf.append("cvsModule='").append(this .cvsModule).append("'");
116: buf.append("description='").append(this .description)
117: .append("'");
118: buf.append(" ]");
119:
120: return buf.toString();
121: }
122:
123: }
|