Interface FeatureI
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAttribute(String key)Get the attribute value for this key.HashMap<String,String>getAttributes()Stringgroup()Get the group id of the feature.booleanhasAttribute(String key)Check if the feature has a value defined for the specified key.booleanhasAttribute(String key, String value)Check if the feature attributes include the specified key/value pair.Locationlocation()Get the location of the feature.Stringseqname()Get the sequence name.StringtoString()A string representation of the feature.Stringtype()Get the feature type, for example, "exon", "CDS", etc.HashMap<String,String>userData()Get HashMap of user data.
 
- 
- 
- 
Method Detail- 
groupString group() Get the group id of the feature. The group id is defined in the GFF1 format; features that share a common group id are presumed to be part of some logical group. For example, a gene might be represented by several exon features that all share the same group id.
 The exact meaning of a feature's group id, or even its existence, is not guaranteed by this interface. An understanding of a particular file's data format is necessary to properly interpret the group id.- Returns:
- The group id. This may be an empty string.
 
 - 
getAttributeString getAttribute(String key) Get the attribute value for this key.- Parameters:
- key- The key.
- Returns:
- The corresponding value. Null if the key has no value defined .
 
 - 
hasAttributeboolean hasAttribute(String key) Check if the feature has a value defined for the specified key.- Parameters:
- key- The key.
- Returns:
- True if a value is defined for this key.
 
 - 
hasAttributeboolean hasAttribute(String key, String value) Check if the feature attributes include the specified key/value pair.- Parameters:
- key- The key.
- value- The value.
- Returns:
- True if the feature's value for this key matches the specified value.
 
 - 
getAttributesHashMap<String,String> getAttributes() 
 
- 
 
-