Tabnine Logo
BioSource2xmlPSI2.getHostOrganismFromCache
Code IndexAdd Tabnine to your IDE (free)

How to use
getHostOrganismFromCache
method
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi2.BioSource2xmlPSI2

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi2.BioSource2xmlPSI2.getHostOrganismFromCache (Showing top 3 results out of 315)

origin: uk.ac.ebi.intact.app/data-conversion

public Element createHostOrganism( UserSessionDownload session,
                  Element parent,
                  BioSource bioSource ) {
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null BioSource to build a " + HOST_ORGANISM_TAG_NAME + "." );
  } else {
    if ( !"experimentDescription".equals( parent.getNodeName() ) ) {
      throw new IllegalArgumentException( "You must give a experimentDescription to build a " + ORGANISM_TAG_NAME + "." );
    }
  }
  Element element = getHostOrganismFromCache( session, bioSource );
  if ( element == null ) {
    element = create( session, parent, bioSource, HOST_ORGANISM_TAG_NAME );
    updateHostOrganismCache( session, bioSource, element );
  } else {
    parent.appendChild( element );
  }
  return element;
}
origin: uk.ac.ebi.intact.util/data-conversion

public Element createHostOrganism( UserSessionDownload session,
                  Element parent,
                  BioSource bioSource ) {
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null BioSource to build a " + HOST_ORGANISM_TAG_NAME + "." );
  } else {
    if ( !"experimentDescription".equals( parent.getNodeName() ) ) {
      throw new IllegalArgumentException( "You must give a experimentDescription to build a " + ORGANISM_TAG_NAME + "." );
    }
  }
  Element element = getHostOrganismFromCache( session, bioSource );
  if ( element == null ) {
    element = create( session, parent, bioSource, HOST_ORGANISM_TAG_NAME );
    updateHostOrganismCache( session, bioSource, element );
  } else {
    parent.appendChild( element );
  }
  return element;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public Element createHostOrganism( UserSessionDownload session,
                  Element parent,
                  BioSource bioSource ) {
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null BioSource to build a " + HOST_ORGANISM_TAG_NAME + "." );
  } else {
    if ( !"experimentDescription".equals( parent.getNodeName() ) ) {
      throw new IllegalArgumentException( "You must give a experimentDescription to build a " + ORGANISM_TAG_NAME + "." );
    }
  }
  Element element = getHostOrganismFromCache( session, bioSource );
  if ( element == null ) {
    element = create( session, parent, bioSource, HOST_ORGANISM_TAG_NAME );
    updateHostOrganismCache( session, bioSource, element );
  } else {
    parent.appendChild( element );
  }
  return element;
}
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi2BioSource2xmlPSI2getHostOrganismFromCache

Javadoc

Checks if the given BioSource has already been generated as XML content.
If so, that content is cloned which is faster than recreating it.

Popular methods of BioSource2xmlPSI2

  • create
  • createNames
  • getInstance
  • getOrganismFromCache
    Checks if the given BioSource has already been generated as XML content. If so, that content is clo
  • updateHostOrganismCache
    Store in the cache the XML representation related to the given BioSource instance.
  • updateOrganismCache
    Store in the cache the XML representation related to the given BioSource instance.

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now