View Javadoc

1   package uk.ac.ebi.intenz.webapp.dtos;
2   
3   import org.apache.struts.action.ActionErrors;
4   import org.apache.struts.action.ActionForm;
5   import org.apache.struts.action.ActionMapping;
6   
7   import javax.servlet.http.HttpServletRequest;
8   import java.util.List;
9   
10  /**
11   *  Only used for clones when an enzyme consists of "two rows".
12   * (Not used as a list in other DTO's)
13   *
14   *
15   * @author Michael Darsow
16   * @version $Revision: 1.2 $ $Date: 2008/01/28 12:33:07 $
17   */
18  public class EnzymeListDTO extends ActionForm {
19  
20    private List result;
21  
22    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
23      ActionErrors errors = new ActionErrors();
24  
25  
26      return errors;
27    }
28  
29    
30    // ------------------------------- GETTER & SETTER --------------------------------
31  
32    public List getResult() {
33      return result;
34    }
35  
36    public void setResult(List result) {
37      this.result = result;
38    }
39  
40    public GhostEnzymeDTO getRowAt(int index) {
41      return (GhostEnzymeDTO) result.get(index);
42    }
43  }