View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2007 utgenome.org
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *--------------------------------------------------------------------------*/
16  //--------------------------------------
17  // UTGBMedaka Project
18  //
19  // Result.java
20  // Since: Aug 10, 2007
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.track.bean;
26  
27  import java.util.ArrayList;
28  
29  import com.google.gwt.user.client.rpc.IsSerializable;
30  
31  public class Result implements IsSerializable {
32  	private int id = -1;
33  	private String species;
34  	private String revision;
35  	private String target;
36  	private int start;
37  	private int end;
38  
39  	/**
40  	 */
41  	private ArrayList<String> keywords = new ArrayList<String>();
42  
43  	/**
44  	 * 
45  	 */
46  	public Result() {
47  	}
48  
49  	public int getId() {
50  		return id;
51  	}
52  
53  	public void setId(int id) {
54  		this.id = id;
55  	}
56  
57  	public String getSpecies() {
58  		return species;
59  	}
60  
61  	public void setSpecies(String species) {
62  		this.species = species;
63  	}
64  
65  	public String getRevision() {
66  		return revision;
67  	}
68  
69  	public void setRevision(String revision) {
70  		this.revision = revision;
71  	}
72  
73  	public String getTarget() {
74  		return target;
75  	}
76  
77  	public void setTarget(String scaffold) {
78  		this.target = scaffold;
79  	}
80  
81  	public int getStart() {
82  		return start;
83  	}
84  
85  	public void setStart(int startpos) {
86  		this.start = startpos;
87  	}
88  
89  	public int getEnd() {
90  		return end;
91  	}
92  
93  	public void setEnd(int endpos) {
94  		this.end = endpos;
95  	}
96  
97  	public ArrayList<String> getKeywordList() {
98  		return keywords;
99  	}
100 
101 	public void addKeyword(String keyword) {
102 		keywords.add(keyword);
103 	}
104 
105 	public void addName(String keyword) {
106 		keywords.add(keyword);
107 	}
108 
109 	public void clearKeyword() {
110 		keywords.clear();
111 	}
112 
113 }