prototype DBRef and Feature Type semantics (for annotating coding regions and disting...
[jalview.git] / src / jalview / datamodel / FeatureProperties.java
1 package jalview.datamodel;\r
2 \r
3 /**\r
4  * A set of feature property constants used by jalview\r
5  * @author JimP\r
6  *\r
7  */\r
8 public class FeatureProperties\r
9 {\r
10 \r
11   public static final String EXONPOS = "exon number";\r
12   public static final String EXONPRODUCT = "product";\r
13   /**\r
14    * lookup feature type for a particular database to see if its a coding region feature\r
15    * @param dbrefsource\r
16    * @param string\r
17    * @return\r
18    */\r
19   public static boolean isCodingFeature(String dbrefsource, String type)\r
20   {\r
21     return ((dbrefsource==null || dbrefsource.equalsIgnoreCase(DBRefSource.EMBL))\r
22             && type.equalsIgnoreCase("CDS"));\r
23   }\r
24 }\r