Class DBReferenceInfo

  • Direct Known Subclasses:
    FeatureDbReferenceInfo

    public class DBReferenceInfo
    extends Qualifier
    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 , Paolo Pavan
    • Constructor Summary

      Constructors 
      Constructor Description
      DBReferenceInfo​(java.lang.String database, java.lang.String id)
      The source database and id
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addProperty​(java.lang.String type, java.lang.String value)
      Add a property and type to associate with this DBReferenceInfo
      java.lang.String getDatabase()  
      java.lang.String getId()  
      java.util.LinkedHashMap<java.lang.String,​java.lang.String> getProperties()
      Get the properties
      void setDatabase​(java.lang.String database)  
      void setId​(java.lang.String id)  
      void setProperties​(java.util.LinkedHashMap<java.lang.String,​java.lang.String> properties)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DBReferenceInfo

        public DBReferenceInfo​(java.lang.String database,
                               java.lang.String id)
        The source database and id
        Parameters:
        database -
        id -
    • Method Detail

      • addProperty

        public void addProperty​(java.lang.String type,
                                java.lang.String value)
        Add a property and type to associate with this DBReferenceInfo
        Parameters:
        type -
        value -
      • getProperties

        public java.util.LinkedHashMap<java.lang.String,​java.lang.String> getProperties()
        Get the properties
        Returns:
        the properties
      • setProperties

        public void setProperties​(java.util.LinkedHashMap<java.lang.String,​java.lang.String> properties)
        Parameters:
        properties - the properties to set
      • getDatabase

        public java.lang.String getDatabase()
        Returns:
        the database
      • setDatabase

        public void setDatabase​(java.lang.String database)
        Parameters:
        database - the database to set
      • getId

        public java.lang.String getId()
        Returns:
        the id
      • setId

        public void setId​(java.lang.String id)
        Parameters:
        id - the id to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Qualifier