View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2008 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  // utgb-core Project
18  //
19  // Content.java
20  // Since: Feb 6, 2008
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.bean.track;
26  
27  import java.util.ArrayList;
28  
29  import com.google.gwt.user.client.rpc.IsSerializable;
30  
31  /**
32   * Content descriptor in the track
33   * 
34   * @author leo
35   * 
36   */
37  public class Content implements IsSerializable {
38  
39  	private String type = "utgb";
40  
41  	/**
42  	 */
43  	private ArrayList<Species> speciesList = new ArrayList<Species>();
44  
45  	/**
46  	 */
47  	private ArrayList<HiddenParameter> hiddenParameterList = new ArrayList<HiddenParameter>();
48  
49  	/**
50  	 */
51  	private ArrayList<Parameter> parameterList = new ArrayList<Parameter>();
52  
53  	/**
54  	 */
55  	private ArrayList<Layer> layerList = new ArrayList<Layer>();
56  
57  	public Content() {
58  	}
59  
60  	public void addSpecies(Species species) {
61  		speciesList.add(species);
62  	}
63  
64  	public void addHidden(HiddenParameter hidden) {
65  		hiddenParameterList.add(hidden);
66  	}
67  
68  	public void addParam(Parameter param) {
69  		parameterList.add(param);
70  	}
71  
72  	public void addLayer(Layer layer) {
73  		layerList.add(layer);
74  	}
75  
76  	public String getType() {
77  		return type;
78  	}
79  
80  	public void setType(String type) {
81  		this.type = type;
82  	}
83  
84  	public ArrayList<Species> getSpeciesList() {
85  		return speciesList;
86  	}
87  
88  	public ArrayList<HiddenParameter> getHiddenParameterList() {
89  		return hiddenParameterList;
90  	}
91  
92  	public ArrayList<Parameter> getParameterList() {
93  		return parameterList;
94  	}
95  
96  	public ArrayList<Layer> getLayerList() {
97  		return layerList;
98  	}
99  
100 }