public class AccessionID extends Object
DataSource
to 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 IDConstructor and Description |
---|
AccessionID() |
AccessionID(String id) |
AccessionID(String id,
DataSource source) |
AccessionID(String id,
DataSource source,
Integer version,
String identifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DataSource |
getDataSource() |
String |
getID() |
String |
getIdentifier()
In case if
getID() in not unique keeps the alternative id, eg. |
Integer |
getVersion()
In case if the
getID() is not unique keeps the id version. |
int |
hashCode() |
void |
setIdentifier(String identifier) |
void |
setVersion(Integer version) |
String |
toString() |
public AccessionID()
public AccessionID(String id)
id
- public AccessionID(String id, DataSource source)
id
- source
- public AccessionID(String id, DataSource source, Integer version, String identifier)
public DataSource getDataSource()
public Integer getVersion()
getID()
is not unique keeps the id version.public void setVersion(Integer version)
public String getIdentifier()
getID()
in not unique keeps the alternative id, eg. NCBI GI number.
This may null.public void setIdentifier(String identifier)
Copyright © 2000–2018 BioJava. All rights reserved.