org.biojava3.core.sequence.features
Class DBReferenceInfo

java.lang.Object
  extended by org.biojava3.core.sequence.features.DBReferenceInfo

public class DBReferenceInfo
extends Object

If you have a uniprot ID then it is possible to get a collection of other id(s) that the protein is known by. This is a place holder for the alternative source database and the id for the same protein. Currently implement when the UniprotProxySequenceReader is used to load a protein sequence

Author:
Scooter Willis

Constructor Summary
DBReferenceInfo(String database, String id)
          The source database and id
 
Method Summary
 void addProperty(String type, String value)
          Add a property and type to associate with this DBReferenceInfo
 String getDatabase()
           
 String getId()
           
 LinkedHashMap<String,String> getProperties()
          Get the properties
 void setDatabase(String database)
           
 void setId(String id)
           
 void setProperties(LinkedHashMap<String,String> properties)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBReferenceInfo

public DBReferenceInfo(String database,
                       String id)
The source database and id

Parameters:
database -
id -
Method Detail

addProperty

public void addProperty(String type,
                        String value)
Add a property and type to associate with this DBReferenceInfo

Parameters:
type -
value -

getProperties

public LinkedHashMap<String,String> getProperties()
Get the properties

Returns:
the properties

setProperties

public void setProperties(LinkedHashMap<String,String> properties)
Parameters:
properties - the properties to set

getDatabase

public String getDatabase()
Returns:
the database

setDatabase

public void setDatabase(String database)
Parameters:
database - the database to set

getId

public String getId()
Returns:
the id

setId

public void setId(String id)
Parameters:
id - the id to set

toString

public String toString()
Overrides:
toString in class Object