Tabnine Logo
ConfidenceTag.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
uk.ac.ebi.intact.application.dataConversion.psiUpload.model.ConfidenceTag
constructor

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiUpload.model.ConfidenceTag.<init> (Showing top 6 results out of 315)

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

  /**
   * Process a &lt;cellType&gt; in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi
   * <code>primaryRef</code>, and look-up in intact using its <code>id</code>.
   *
   * @param element &lt;cellType&gt;.
   *
   * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor.
   *
   * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag
   */
  public static ConfidenceTag process( final Element element ) {

    if ( false == "confidence".equals( element.getNodeName() ) ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) );
    }

    String unit = element.getAttribute( "unit" );
    String value = element.getAttribute( "value" );

    ConfidenceTag confidenceTag = null;
    try {
      confidenceTag = new ConfidenceTag( unit, value );
    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
    }

    return confidenceTag;
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

  /**
   * Process a &lt;cellType&gt; in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi
   * <code>primaryRef</code>, and look-up in intact using its <code>id</code>.
   *
   * @param element &lt;cellType&gt;.
   *
   * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor.
   *
   * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag
   */
  public static ConfidenceTag process( final Element element ) {

    if ( false == "confidence".equals( element.getNodeName() ) ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) );
    }

    String unit = element.getAttribute( "unit" );
    String value = element.getAttribute( "value" );

    ConfidenceTag confidenceTag = null;
    try {
      confidenceTag = new ConfidenceTag( unit, value );
    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
    }

    return confidenceTag;
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  /**
   * Process a &lt;cellType&gt; in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi
   * <code>primaryRef</code>, and look-up in intact using its <code>id</code>.
   *
   * @param element &lt;cellType&gt;.
   *
   * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor.
   *
   * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag
   */
  public static ConfidenceTag process( final Element element ) {

    if ( false == "confidence".equals( element.getNodeName() ) ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) );
    }

    String unit = element.getAttribute( "unit" );
    String value = element.getAttribute( "value" );

    ConfidenceTag confidenceTag = null;
    try {
      confidenceTag = new ConfidenceTag( unit, value );
    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) );
    }

    return confidenceTag;
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

if ( confidenceElement != null ) {
  confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ),
                  confidenceElement.getAttribute( "value" ) );
origin: uk.ac.ebi.intact.util/data-conversion

if ( confidenceElement != null ) {
  confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ),
                  confidenceElement.getAttribute( "value" ) );
origin: uk.ac.ebi.intact.app/data-conversion

if ( confidenceElement != null ) {
  confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ),
                  confidenceElement.getAttribute( "value" ) );
uk.ac.ebi.intact.application.dataConversion.psiUpload.modelConfidenceTag<init>

Popular methods of ConfidenceTag

  • equals
  • getValue
  • hashCode

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Path (java.nio.file)
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • From CI to AI: The AI layer in your organization
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