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

How to use
Message
in
uk.ac.ebi.intact.application.dataConversion.psiUpload.util.report

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiUpload.util.report.Message (Showing top 20 results out of 315)

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

  private static XrefTag createXref( final Element xrefNode, final short type ) {

    XrefTag xref = null;
    try {
      String db = xrefNode.getAttribute( "db" );
      if ( db != null ) {
        db = db.toLowerCase();
      }

      xref = new XrefTag( type,
                xrefNode.getAttribute( "id" ),
                db,
                xrefNode.getAttribute( "secondary" ),
                xrefNode.getAttribute( "version" ) );

    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( xrefNode, e.getMessage() ) );
    }

    return xref;
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

public void addCheckerMessage( Message message ) {
  System.err.println( message.getText() );
  checkerMessages.add( message );
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  private static XrefTag createXref( final Element xrefNode, final short type ) {

    XrefTag xref = null;
    try {
      String db = xrefNode.getAttribute( "db" );
      if ( db != null ) {
        db = db.toLowerCase();
      }

      xref = new XrefTag( type,
                xrefNode.getAttribute( "id" ),
                db,
                xrefNode.getAttribute( "secondary" ),
                xrefNode.getAttribute( "version" ) );

    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( xrefNode, e.getMessage() ) );
    }

    return xref;
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

public void addPersisterMessage( Message message ) {
  System.err.println( message.getText() );
  persisterMessages.add( message );
}
origin: uk.ac.ebi.intact.app/data-conversion

  private static XrefTag createXref( final Element xrefNode, final short type ) {

    XrefTag xref = null;
    try {
      String db = xrefNode.getAttribute( "db" );
      if ( db != null ) {
        db = db.toLowerCase();
      }

      xref = new XrefTag( type,
                xrefNode.getAttribute( "id" ),
                db,
                xrefNode.getAttribute( "secondary" ),
                xrefNode.getAttribute( "version" ) );

    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( xrefNode, e.getMessage() ) );
    }

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

public void addCheckerMessage( Message message ) {
  System.err.println( message.getText() );
  checkerMessages.add( message );
}
origin: uk.ac.ebi.intact.app/data-conversion

  /**
   * Take <featureList> in parameter.
   *
   * @param element
   */
  public static Collection process( final Element element ) {

    Collection features = new ArrayList( 2 );

    final String name = element.getNodeName();
    if ( false == "featureList".equals( name ) ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in a " +
                                        "featureList tag." ) );
      // TODO should we carry on here ? If the tag is not right ... the parsing can only fail !
    }

    final NodeList someFeatures = element.getElementsByTagName( "feature" );
    final int count = someFeatures.getLength();

    for ( int i = 0; i < count; i++ ) {
      final Node featureNode = someFeatures.item( i );

      final FeatureTag feature = FeatureParser.process( (Element) featureNode );

      features.add( feature );
    } // features

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

public void addCheckerMessage( Message message ) {
  System.err.println( message.getText() );
  checkerMessages.add( message );
}
origin: uk.ac.ebi.intact.util/data-conversion

  /**
   * Take &lt;featureList&gt; in parameter.
   *
   * @param element
   */
  public static Collection process( final Element element ) {

    Collection features = new ArrayList( 2 );

    final String name = element.getNodeName();
    if ( false == "featureList".equals( name ) ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in a " +
                                        "featureList tag." ) );
      // TODO should we carry on here ? If the tag is not right ... the parsing can only fail !
    }

    final NodeList someFeatures = element.getElementsByTagName( "feature" );
    final int count = someFeatures.getLength();

    for ( int i = 0; i < count; i++ ) {
      final Node featureNode = someFeatures.item( i );

      final FeatureTag feature = FeatureParser.process( (Element) featureNode );

      features.add( feature );
    } // features

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

public void addPersisterMessage( Message message ) {
  System.err.println( message.getText() );
  persisterMessages.add( message );
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  /**
   * Take &lt;featureList&gt; in parameter.
   *
   * @param element
   */
  public static Collection process( final Element element ) {

    Collection features = new ArrayList( 2 );

    final String name = element.getNodeName();
    if ( false == "featureList".equals( name ) ) {
      MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in a " +
                                        "featureList tag." ) );
      // TODO should we carry on here ? If the tag is not right ... the parsing can only fail !
    }

    final NodeList someFeatures = element.getElementsByTagName( "feature" );
    final int count = someFeatures.getLength();

    for ( int i = 0; i < count; i++ ) {
      final Node featureNode = someFeatures.item( i );

      final FeatureTag feature = FeatureParser.process( (Element) featureNode );

      features.add( feature );
    } // features

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

public void addPersisterMessage( Message message ) {
  System.err.println( message.getText() );
  persisterMessages.add( message );
}
origin: uk.ac.ebi.intact.app/data-conversion

MessageHolder.getInstance().addParserMessage( new Message( entrySet, "ERROR - We should be in entrySet tag." ) );
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.dataexchange.psimi.legacy/data-conversion

MessageHolder.getInstance().addParserMessage( new Message( entrySet, "ERROR - We should be in entrySet tag." ) );
origin: uk.ac.ebi.intact.util/data-conversion

MessageHolder.getInstance().addParserMessage( new Message( entrySet, "ERROR - We should be in entrySet tag." ) );
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.app/data-conversion

MessageHolder.getInstance().addParserMessage( new Message( root, "ERROR - We should be in xref tag." ) );
  MessageHolder.getInstance().addParserMessage( new Message( root, e.getMessage() ) );
origin: uk.ac.ebi.intact.util/data-conversion

MessageHolder.getInstance().addParserMessage( new Message( root, "ERROR - We should be in xref tag." ) );
  MessageHolder.getInstance().addParserMessage( new Message( root, e.getMessage() ) );
uk.ac.ebi.intact.application.dataConversion.psiUpload.util.reportMessage

Javadoc

That class .

Most used methods

  • <init>
  • getText

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • Kernel (java.awt.image)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Option (scala)
  • Top PhpStorm 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