Last update: 2011-06-23

org.proteios.core
Class LsidElement

java.lang.Object
  extended by org.proteios.core.LsidElement

public class LsidElement
extends Object


Nested Class Summary
protected static class LsidElement.SequenceRetriever
          This class will retrieve the data from a given LSID.
 
Constructor Summary
LsidElement(String name, String identifier_name)
           
 
Method Summary
protected  String calculateLsid()
           
 String getAccession_number()
          hibernate.property column="`accession_number`"
 String getIdentifier_name()
           
 String getLsid()
          hibernate.property column="`lsid`"
 String getName()
           
 URL getURL()
          Will return a URL to an online resource where more info on the protein can be found.
 void setAccession_number(String acc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LsidElement

public LsidElement(String name,
                   String identifier_name)
Method Detail

getName

public String getName()

getIdentifier_name

public String getIdentifier_name()

getLsid

public String getLsid()
hibernate.property column="`lsid`"


getAccession_number

public String getAccession_number()
hibernate.property column="`accession_number`"


setAccession_number

public void setAccession_number(String acc)

calculateLsid

protected String calculateLsid()

getURL

public URL getURL()
           throws BaseException
Will return a URL to an online resource where more info on the protein can be found. Requires that the LSID contains a URN of the format "urn:lsid:thep.lu.se:uniprot:*". For now it will only work with uniprot entries.

Returns:
URL from lsid or null if no lsid.
Throws:
BaseException

Last update: 2011-06-23