Tabnine Logo
Xref2xmlPSI1
Code IndexAdd Tabnine to your IDE (free)

How to use
Xref2xmlPSI1
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator

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

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

  /**
   * Gives the right version of the Psi XML generator according to the user's session
   *
   * @param session the user session that will indicate which version of the Psi generator is required
   *
   * @return
   */
  public static AbstractXref2Xml getInstance( UserSessionDownload session ) {

    if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) {

      return Xref2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) {

      return Xref2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) {

      return Xref2xmlPSI2.getInstance();

    } else {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() );
    }
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

  /**
   * Gives the right version of the Psi XML generator according to the user's session
   *
   * @param session the user session that will indicate which version of the Psi generator is required
   *
   * @return
   */
  public static AbstractXref2Xml getInstance( UserSessionDownload session ) {

    if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) {

      return Xref2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) {

      return Xref2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) {

      return Xref2xmlPSI2.getInstance();

    } else {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() );
    }
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  /**
   * Gives the right version of the Psi XML generator according to the user's session
   *
   * @param session the user session that will indicate which version of the Psi generator is required
   *
   * @return
   */
  public static AbstractXref2Xml getInstance( UserSessionDownload session ) {

    if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) {

      return Xref2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) {

      return Xref2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) {

      return Xref2xmlPSI2.getInstance();

    } else {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() );
    }
  }
}
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGeneratorXref2xmlPSI1

Javadoc

Convert an IntAct Xref to PSI XML.

Most used methods

  • getInstance

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Kernel (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • 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