Codota Logo
PublicationUtils.getPubmedPrimaryReferenceXref
Code IndexAdd Codota to your IDE (free)

How to use
getPubmedPrimaryReferenceXref
method
in
uk.ac.ebi.intact.model.util.PublicationUtils

Best Java code snippets using uk.ac.ebi.intact.model.util.PublicationUtils.getPubmedPrimaryReferenceXref (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Gets the pubmed ID for an Experiment - whitout hitting the database
 *
 * @param experiment the experiment to get the pubmed id from
 * @return the pubmed id
 */
public static String getPubmedId(Experiment experiment) {
  String pubmedId = null;
  Publication publication = experiment.getPublication();
  if (publication != null) {
    PublicationXref xref = PublicationUtils.getPubmedPrimaryReferenceXref(publication);
    if (xref != null){
      pubmedId = xref.getPrimaryId();
    }
  }
  if (pubmedId == null) {
    ExperimentXref xref = getPubmedPrimaryReferenceXref(experiment);
    if (xref != null) {
      pubmedId = xref.getPrimaryId();
    }
  }
  return pubmedId;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Gets the pubmed ID for an Experiment - whitout hitting the database
 *
 * @param experiment the experiment to get the pubmed id from
 * @return the pubmed id
 */
public static String getPubmedId(Experiment experiment) {
  String pubmedId = null;
  Publication publication = experiment.getPublication();
  if (publication != null) {
    PublicationXref xref = PublicationUtils.getPubmedPrimaryReferenceXref(publication);
    if (xref != null){
      pubmedId = xref.getPrimaryId();
    }
  }
  if (pubmedId == null) {
    ExperimentXref xref = getPubmedPrimaryReferenceXref(experiment);
    if (xref != null) {
      pubmedId = xref.getPrimaryId();
    }
  }
  return pubmedId;
}
uk.ac.ebi.intact.model.utilPublicationUtilsgetPubmedPrimaryReferenceXref

Popular methods of PublicationUtils

  • getLastEventOfType
    Gets the last lifecycle event with the provided CvLifecycleEvent identifier for a publication.
  • isOnHold
  • nextUnassignedId

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • putExtra (Intent)
  • Kernel (java.awt.image)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ImageIO (javax.imageio)
  • JComboBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now