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

How to use
getOrganismFromCache
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.getOrganismFromCache (Showing top 3 results out of 315)

origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

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

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

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

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
  • getHostOrganismFromCache
    Checks if the given BioSource has already been generated as XML content. If so, that content is clo
  • getInstance
  • 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

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
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