|
Revision 423M | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bridgedb.Xref
public class Xref
Stores an id + DataSource combination, which represents
an unique gene product.
Immutable class, thread safe
| Constructor Summary | |
|---|---|
Xref(java.lang.String id,
DataSource ds)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Xref idc)
Compares two Xrefs, asciibetically using string representation. |
boolean |
equals(java.lang.Object o)
|
DataSource |
getDataSource()
|
java.lang.String |
getId()
|
java.lang.String |
getUrl()
Uses DataSource.getUrl() to create a valid URL for an online webpage describing this entity. |
java.lang.String |
getURN()
Uses DataSource.getURN() to create a global identifier, such as urn:miriam:uniprot:P12345. |
int |
hashCode()
hashCode calculated from id and datasource combined. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Xref(java.lang.String id,
DataSource ds)
id - the Id part of this Xrefds - the DataSource part of this Xref.| Method Detail |
|---|
public DataSource getDataSource()
public java.lang.String getId()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - Object to compare to
public int compareTo(Xref idc)
compareTo in interface java.lang.Comparable<Xref>idc - Xref to compare to
public java.lang.String getUrl()
public java.lang.String getURN()
|
Generated July 29 2010 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||