Jalview Imported Sources
[jalview.git] / src / jalview / io / FormatPropertyVector.java
1 package jalview.io;\r
2 \r
3 import java.util.*;\r
4 \r
5 public class FormatPropertyVector {\r
6   Vector formatProps = new Vector();\r
7   Vector formatDescs = new Vector();\r
8 \r
9   public void add(String description,String className) {\r
10     formatProps.addElement(new FormatProperty(description,className));\r
11     formatDescs.addElement(description);\r
12   }\r
13   public Vector getFormatNames() {\r
14     return formatDescs;\r
15   }\r
16 \r
17   public String getClassName(int ind) {\r
18     return ((FormatProperty)formatProps.elementAt(ind)).getClassName();\r
19   }\r
20 \r
21   public String getSchemeName(int ind) {\r
22     return ((FormatProperty)formatProps.elementAt(ind)).getDescription();\r
23   }\r
24 \r
25   public boolean contains(String description) {\r
26     return formatDescs.contains(description);\r
27   }\r
28 \r
29   public int indexOf(String description) {\r
30     return formatDescs.indexOf(description);\r
31   }\r
32 }\r