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  // GenomeBrowser Project
18  //
19  // OldUTGBProperty.java
20  // Since: 2007/06/19
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.track.lib.old;
26  
27  import java.util.ArrayList;
28  import java.util.HashSet;
29  import java.util.List;
30  import java.util.Set;
31  
32  /**
33   * 
34   * @author ssksn
35   */
36  public final class OldUTGBProperty {
37  	/**
38  	 * Uncallable constructor.
39  	 * 
40  	 * @throws AssertionError
41  	 *             if this constructor is called.
42  	 */
43  	private OldUTGBProperty() {
44  		throw new AssertionError();
45  	}
46  
47  	public static final String SPECIES = "species";
48  	public static final String REVISION = "revision";
49  	public static final String TARGET = "target";
50  
51  	private static final String[] propertyNameArray = { SPECIES, REVISION, TARGET };
52  	private static final Set<String> propertyNameSet = new HashSet<String>();
53  	private static final List<String> propertyNameList = new ArrayList<String>();
54  
55  	static {
56  		{
57  			propertyNameSet.add(SPECIES);
58  			propertyNameSet.add(REVISION);
59  			propertyNameSet.add(TARGET);
60  		}
61  		{
62  			propertyNameList.add(SPECIES);
63  			propertyNameList.add(REVISION);
64  			propertyNameList.add(TARGET);
65  		}
66  	}
67  
68  	public static final String[] getPropertyNameArray() {
69  		return propertyNameArray;
70  	}
71  
72  	public static final Set<String> getPropertyNameSet() {
73  		return propertyNameSet;
74  	}
75  
76  	public static final List<String> getPropertyNameList() {
77  		return propertyNameList;
78  	}
79  }