congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BioSource2xmlPSI1.getHostOrganismFromCache
Code IndexAdd Tabnine to your IDE (free)

How to use
getHostOrganismFromCache
method
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi1.BioSource2xmlPSI1

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi1.BioSource2xmlPSI1.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.psi1BioSource2xmlPSI1getHostOrganismFromCache

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 BioSource2xmlPSI1

  • 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

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JLabel (javax.swing)
  • JList (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • CodeWhisperer alternatives
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