Package org.biojava.nbio.core.sequence
Class AccessionID
- java.lang.Object
 - 
- org.biojava.nbio.core.sequence.AccessionID
 
 
- 
public class AccessionID extends Object
Used in Sequences as the unique indentifier. If possible, set theDataSourceto know the source of the id. This allows a SequenceProxy to gather features or related sequences Protein->Gene as an example. When parsing a Blast file it is also possible to identify the type of ID- Author:
 - Scooter Willis, Jacek Grzebyta
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AccessionID()AccessionID(String id)AccessionID(String id, DataSource source)AccessionID(String id, DataSource source, Integer version, String identifier) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DataSourcegetDataSource()StringgetID()StringgetIdentifier()In case ifgetID()in not unique keeps the alternative id, eg.IntegergetVersion()In case if thegetID()is not unique keeps the id version.inthashCode()voidsetIdentifier(String identifier)voidsetVersion(Integer version)StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
AccessionID
public AccessionID()
 
- 
AccessionID
public AccessionID(String id)
- Parameters:
 id-
 
- 
AccessionID
public AccessionID(String id, DataSource source)
- Parameters:
 id-source-
 
- 
AccessionID
public AccessionID(String id, DataSource source, Integer version, String identifier)
 
 - 
 
- 
Method Detail
- 
getDataSource
public DataSource getDataSource()
- Returns:
 - the source
 
 
- 
getVersion
public Integer getVersion()
In case if thegetID()is not unique keeps the id version.- Returns:
 - the version
 
 
- 
setVersion
public void setVersion(Integer version)
 
- 
getIdentifier
public String getIdentifier()
In case ifgetID()in not unique keeps the alternative id, eg. NCBI GI number. This may null.- Returns:
 
 
- 
setIdentifier
public void setIdentifier(String identifier)
 
 - 
 
 -