public class Xref extends Object implements Comparable<Xref>
DataSource combination, which represents
an unique gene product.
Immutable class, thread safe
| Constructor and Description |
|---|
Xref(String id,
DataSource ds) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Xref idc)
Compares two Xrefs, asciibetically using string representation.
|
boolean |
equals(Object o) |
static Xref |
fromMiriamUrn(String urn)
This method will convert a known Miriam Urn to an Xref
|
static Xref |
fromUrn(String urn)
Deprecated.
|
DataSource |
getDataSource() |
String |
getId() |
String |
getKnownUrl()
Uses DataSource.getKnownUrl to create a valid URL for an online webpage describing this entity.
|
String |
getMiriamURN()
Uses DataSource.getMiriamURN() to create a global identifier, such as urn:miriam:uniprot:P12345.
|
String |
getUrl()
Deprecated.
As it will return just the id if no UriPattern is known
|
String |
getURN()
Deprecated.
|
int |
hashCode()
hashCode calculated from id and datasource combined.
|
String |
toString() |
public Xref(String id, DataSource ds)
id - the Id part of this Xrefds - the DataSource part of this Xref.public DataSource getDataSource()
public String getId()
public String toString()
public int hashCode()
public boolean equals(Object o)
public int compareTo(Xref idc)
compareTo in interface Comparable<Xref>idc - Xref to compare topublic String getUrl()
public String getKnownUrl()
public String getURN()
public String getMiriamURN()
public static Xref fromMiriamUrn(String urn)
urn - Copyright © 2006–2020 BridgeDb project. All rights reserved.