procope.tools.namemapping
Class ProteinLabel

java.lang.Object
  extended by procope.tools.namemapping.ProteinLabel
Direct Known Subclasses:
ProteinLabelOrganism

public class ProteinLabel
extends Object

Main class used for identifying proteins. This basic implementation of a label only consists of a simple string (e.g. YDL126C). Any subclasses which extend ProteinLabel should consider the following rules:

Author:
Jan Krumsiek

Constructor Summary
protected ProteinLabel()
           
  ProteinLabel(String identifier)
          Creates a new simple protein label consisting of a single identifier string
 
Method Summary
 String getIdentifier()
          Returns the identifier of this protein label.
protected  String getKey()
          Returns the key for this protein label.
protected  void setIdentifier(String identifier)
           
 String toString()
          Returns a string representation of this label
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProteinLabel

protected ProteinLabel()

ProteinLabel

public ProteinLabel(String identifier)
Creates a new simple protein label consisting of a single identifier string

Parameters:
identifier - identifier of the protein
Method Detail

setIdentifier

protected void setIdentifier(String identifier)

getIdentifier

public String getIdentifier()
Returns the identifier of this protein label.

Returns:
identifier of this label

getKey

protected String getKey()
Returns the key for this protein label. Should return equal value for different label objects if and only if the labels are considered equal.

Returns:
key for this protein label

toString

public String toString()
Returns a string representation of this label

Overrides:
toString in class Object