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) |
Xref(String id,
DataSource ds,
boolean isPrimary) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Xref idc)
Compares two Xrefs, asciibetically using string representation.
|
boolean |
equals(Object o) |
static Xref |
fromCompactIdentifier(String compact)
This method will convert a compact identifier to an Xref
|
static Xref |
fromMiriamUrn(String urn)
This method will convert a known Miriam Urn to an Xref
|
String |
getCompactidentifier()
Uses DataSource.getCompactidentifier() to create a compact identifier, such as uniprot:P12345.
|
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.
|
int |
hashCode()
hashCode calculated from id and datasource combined.
|
boolean |
isPrimary() |
String |
toString() |
public Xref(String id, DataSource ds)
id - the Id part of this Xrefds - the DataSource part of this Xref.public Xref(String id, DataSource ds, boolean isPrimary)
id - the Id part of this Xrefds - the DataSource part of this Xref.isPrimary - represents whether the id is primary or notpublic DataSource getDataSource()
public String getId()
public boolean isPrimary()
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 getKnownUrl()
public String getMiriamURN()
public String getCompactidentifier()
public static Xref fromMiriamUrn(String urn)
urn - Copyright © 2006–2021 BridgeDb project. All rights reserved.