Codota Logo
InteractionShortLabelGenerator$InteractionShortLabel.truncateLabelsIfNecessary
Code IndexAdd Codota to your IDE (free)

How to use
truncateLabelsIfNecessary
method
in
uk.ac.ebi.intact.model.util.InteractionShortLabelGenerator$InteractionShortLabel

Best Java code snippets using uk.ac.ebi.intact.model.util.InteractionShortLabelGenerator$InteractionShortLabel.truncateLabelsIfNecessary (Showing top 3 results out of 315)

  • Common ways to obtain InteractionShortLabelGenerator$InteractionShortLabel
private void myMethod () {
InteractionShortLabelGenerator$InteractionShortLabel i =
  • Codota IconString completeLabel;new InteractionShortLabel(completeLabel)
  • Codota IconString baitLabel;String preyLabel;Integer suffix;new InteractionShortLabel(baitLabel, preyLabel, suffix)
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact/intact-core

public String getCompleteLabel(boolean includeSuffix) {
  truncateLabelsIfNecessary();
  String strPrey = "";
  if (preyLabel != null) { //not a self-interaction
    strPrey = INTERACTION_SEPARATOR + preyLabel;
  }
  String strSuffix = "";
  if (includeSuffix && suffix != null) {
    strSuffix = INTERACTION_SEPARATOR + suffix;
  }
  String complete = baitLabel + strPrey + strSuffix;
  return complete;
}
origin: uk.ac.ebi.intact.core/intact-core

public String getCompleteLabel( boolean includeSuffix ) {
  if (!isValid){
    return this.originalLabel;
  }
  truncateLabelsIfNecessary();
  String strPrey = "";
  if ( preyLabel != null ) { //not a self-interaction
    strPrey = INTERACTION_SEPARATOR + preyLabel;
  }
  String strSuffix = "";
  if ( includeSuffix && suffix != null ) {
    strSuffix = INTERACTION_SEPARATOR + suffix;
  }
  String complete = baitLabel + strPrey + strSuffix;
  return complete;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public String getCompleteLabel( boolean includeSuffix ) {
  if (!isValid){
    return this.originalLabel;
  }
  truncateLabelsIfNecessary();
  String strPrey = "";
  if ( preyLabel != null ) { //not a self-interaction
    strPrey = INTERACTION_SEPARATOR + preyLabel;
  }
  String strSuffix = "";
  if ( includeSuffix && suffix != null ) {
    strSuffix = INTERACTION_SEPARATOR + suffix;
  }
  String complete = baitLabel + strPrey + strSuffix;
  return complete;
}
uk.ac.ebi.intact.model.utilInteractionShortLabelGenerator$InteractionShortLabeltruncateLabelsIfNecessary

Popular methods of InteractionShortLabelGenerator$InteractionShortLabel

  • <init>
  • calculateLabelLength
  • getCompleteLabel
  • getSuffix
  • isSelfInteraction
  • parse
    Interactions follow the nomenclature baitLabel-preyLabel-suffix (where suffix is optional integer).
  • prepareLabel
  • setSuffix

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setContentView (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Notification (javax.management)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now