1 package jalview.datamodel.features;
3 import java.util.HashMap;
7 * A class to model one source of feature data, including metadata about
8 * attributes of features
13 public class FeatureSource implements FeatureSourceI
17 private Map<String, String> attributeNames;
19 private Map<String, FeatureAttributeType> attributeTypes;
26 public FeatureSource(String theName)
29 attributeNames = new HashMap<>();
30 attributeTypes = new HashMap<>();
37 public String getName()
46 public String getAttributeName(String attributeId)
48 return attributeNames.get(attributeId);
55 public FeatureAttributeType getAttributeType(String attributeId)
57 return attributeTypes.get(attributeId);
64 public void setAttributeName(String id, String attName)
66 attributeNames.put(id, attName);
73 public void setAttributeType(String id, FeatureAttributeType type)
75 attributeTypes.put(id, type);