uk.ac.ebi.intact.application.commons.util
Class XrefHelper

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.commons.util.XrefHelper

public class XrefHelper
extends java.lang.Object

This class contains various useful utilities related to Xref. All methods are static.

Version:
$Id: XrefHelper.java,v 1.3 2003/12/15 17:21:09 smudali Exp $
Author:
Sugath Mudali (smudali@ebi.ac.uk)

Method Summary
static java.lang.String getEmptyLink()
          Returns the identifier for the empty primary id link.
static java.lang.String getPrimaryIdLink(Xref xref)
          Return the primary id as a link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPrimaryIdLink

public static java.lang.String getPrimaryIdLink(Xref xref)
Return the primary id as a link. Only used when viewing a xref.

Parameters:
xref - Xrefenece object to access primary id and other information.
Returns:
the primary id as a link only if the primary id is not null and 'search-url' is found among the annotations. #ourEmptyPidLink is returned for a null primary id. The primary id is returned as the link if there is 'search-url' is found among the annotations for given xreference.

getEmptyLink

public static java.lang.String getEmptyLink()
Returns the identifier for the empty primary id link.

Returns:
the identifier for the empty primary id link.


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk