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

How to use
getHostOrganismFromCache
method
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi25.BioSource2xmlPSI25

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi25.BioSource2xmlPSI25.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 ( !HOST_ORGANISM_PARENT_NODE.equals( parent.getNodeName() ) ) {
      throw new IllegalArgumentException( parent.getNodeName() + " found, you must give a " +
                        HOST_ORGANISM_PARENT_NODE + " 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 ( !HOST_ORGANISM_PARENT_NODE.equals( parent.getNodeName() ) ) {
      throw new IllegalArgumentException( parent.getNodeName() + " found, you must give a " +
                        HOST_ORGANISM_PARENT_NODE + " 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 ( !HOST_ORGANISM_PARENT_NODE.equals( parent.getNodeName() ) ) {
      throw new IllegalArgumentException( parent.getNodeName() + " found, you must give a " +
                        HOST_ORGANISM_PARENT_NODE + " 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.psi25BioSource2xmlPSI25getHostOrganismFromCache

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 BioSource2xmlPSI25

  • 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

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • startActivity (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Notification (javax.management)
  • 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