Tabnine Logo
Confidence2xmlPSI25.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi25.Confidence2xmlPSI25

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

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

/**
 * Convert an annotatedObject annotations in to confidence value in PSI.
 *
 * @param session
 * @param parent          the Element to which we will attach the generated confidence.
 * @param annotatedObject the object from which we get the annotations.
 *
 * @return the generated confidence or null if none could be generated.
 */
public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) {
  Element element = null;
  if ( annotatedObject instanceof Interaction ) {
    element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE );
  } else if ( annotatedObject instanceof Experiment ) {
    element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING );
  } else {
    // error, type not supported.
    throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." );
  }
  return element;
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Convert an annotatedObject annotations in to confidence value in PSI.
 *
 * @param session
 * @param parent          the Element to which we will attach the generated confidence.
 * @param annotatedObject the object from which we get the annotations.
 *
 * @return the generated confidence or null if none could be generated.
 */
public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) {
  Element element = null;
  if ( annotatedObject instanceof Interaction ) {
    element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE );
  } else if ( annotatedObject instanceof Experiment ) {
    element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING );
  } else {
    // error, type not supported.
    throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." );
  }
  return element;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Convert an annotatedObject annotations in to confidence value in PSI.
 *
 * @param session
 * @param parent          the Element to which we will attach the generated confidence.
 * @param annotatedObject the object from which we get the annotations.
 *
 * @return the generated confidence or null if none could be generated.
 */
public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) {
  Element element = null;
  if ( annotatedObject instanceof Interaction ) {
    element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE );
  } else if ( annotatedObject instanceof Experiment ) {
    element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING );
  } else {
    // error, type not supported.
    throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." );
  }
  return element;
}
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi25Confidence2xmlPSI25create

Javadoc

Convert an annotatedObject annotations in to confidence value in PSI.

Popular methods of Confidence2xmlPSI25

  • createNames
  • getInstance
  • createConfidenceElement

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • findViewById (Activity)
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ 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