|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocope.tools.namemapping.ProteinLabel
public class ProteinLabel
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:
getKey()
should return equal strings for two label objects if
and only if the two corresponding labels are considered equal. For
instance, getKey()
of ProteinLabel
returns the label string,
for ProteinLabelOrganism
it returns a combined string of the organism
and the label.getKey()
and recreate an identical
label. This is needed for storing complete protein labels in filesProteinManager.caseSensitive
Synonyms
from ProteinManager.getSynonyms()
and use
Synonyms.resolveSynonym(String)
on the incoming identifiers.
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 |
---|
protected ProteinLabel()
public ProteinLabel(String identifier)
identifier
- identifier of the proteinMethod Detail |
---|
protected void setIdentifier(String identifier)
public String getIdentifier()
protected String getKey()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |