Tabnine Logo
Interaction.getShortName
Code IndexAdd Tabnine to your IDE (free)

How to use
getShortName
method
in
psidev.psi.mi.jami.model.Interaction

Best Java code snippets using psidev.psi.mi.jami.model.Interaction.getShortName (Showing top 9 results out of 315)

origin: psidev.psi.mi.jami/jami-core

public String getShortName() {
  return wrappedInteraction.getShortName();
}
origin: psidev.psi.mi.jami/jami-core

  /**
   *
   * @param interaction : the interaction to expand
   * @return the generated name for this interaction
   */
  protected String generateComplexName(Interaction interaction) {
    String complexName = interaction.getShortName() != null ? interaction.getShortName() : interaction.toString();
    if (complexName == null || complexName.length() == 0){
      complexName = Integer.toString(interaction.hashCode());
    }
    return complexName;
  }
}
origin: psidev.psi.mi.jami/jami-core

public void onShortNameUpdate(T interaction, String oldShortName) {
  if (oldShortName == null){
    interactionChangeLogger.log(Level.INFO, "The short name has been initialised for the interaction " + interaction.toString());
  }
  else if (interaction.getShortName() == null){
    interactionChangeLogger.log(Level.INFO, "The short name has been reset for the interaction " + interaction.toString());
  }
  else {
    interactionChangeLogger.log(Level.INFO, "The short name " + oldShortName + " has been updated with " + interaction.getShortName() + " in the interaction " + interaction.toString());
  }
}
origin: psidev.psi.mi.jami/jami-core

hashcode = 31*hashcode + (interaction.getShortName() != null ? interaction.getShortName().hashCode() : 0);
origin: psidev.psi.mi.jami/jami-core

/**
 * This method will copy basic properties from the Interaction source in the complex target.
 * It will erase existing annotations, xrefs, checksums and identifiers
 * This method does not copy the participants of the source
 * @param source
 * @param target
 */
public static void copyAndOverrideBasicComplexPropertiesWithInteractionProperties(Interaction source, Complex target){
  if (source != null && target != null){
    target.setInteractionType(source.getInteractionType());
    target.setCreatedDate(source.getCreatedDate());
    target.setUpdatedDate(source.getUpdatedDate());
    if (source.getShortName() != null){
      target.setShortName(source.getShortName());
    }
    // copy collections
    target.getAnnotations().clear();
    target.getAnnotations().addAll(source.getAnnotations());
    target.getXrefs().clear();
    target.getXrefs().addAll(source.getXrefs());
    target.getIdentifiers().clear();
    target.getIdentifiers().addAll(source.getIdentifiers());
    target.getChecksums().clear();
    target.getChecksums().addAll(source.getChecksums());
  }
}
origin: psidev.psi.mi.jami/jami-core

String shortname1 = interaction1.getShortName();
String shortname2 = interaction2.getShortName();
if (shortname1 != null && shortname2 != null){
  return shortname1.equals(shortname2);
origin: psidev.psi.mi.jami/jami-core

String shortname1 = interaction1.getShortName();
String shortname2 = interaction2.getShortName();
if (shortname1 != null && shortname2 != null){
  return shortname1.compareTo(shortname2);
origin: uk.ac.ebi.intact.dataexchange/structured-abstract

sentence.addInteractionAc(interaction instanceof IntactPrimaryObject ? ((IntactPrimaryObject)interaction).getAc() : interaction.getShortName());
origin: psidev.psi.mi.jami/jami-core

if (source != null && target != null){
  target.setCreatedDate(source.getCreatedDate());
  target.setShortName(source.getShortName());
  target.setInteractionType(source.getInteractionType());
  target.setUpdatedDate(source.getUpdatedDate());
psidev.psi.mi.jami.modelInteractiongetShortName

Javadoc

The short name of the interaction. It can be null. Ex: foxc1-flna, ...

Popular methods of Interaction

  • getIdentifiers
    The identifiers for an interaction. The Collection cannot be null. If the interaction does not have
  • getInteractionType
    The interaction type is a controlled vocabulary term. It can be null. Ex: direct interaction, associ
  • getParticipants
    The collection of participants involved in this interaction. The collection cannot be null. If the i
  • getXrefs
    The external cross references for an interaction. The Collection cannot be null. If the interaction
  • addParticipant
    This method will add the participant and set the interaction of the new participant to this current
  • getAnnotations
    The Collection of annotations describing the interaction. The Collection cannot be null. If the inte
  • getChecksums
    Set of checksums computed for this interaction.. The Collection cannot be null so when an interactio
  • setCreatedDate
    Sets the created date
  • setInteractionType
    Sets the interaction type.
  • setUpdatedDate
    Sets the last update date
  • getCreatedDate
    The creation date. It can be null if not relevant or not known.
  • getRigid
    The checksum computed from the rogids from all the proteins involved in the interaction. It is only
  • getCreatedDate,
  • getRigid,
  • getUpdatedDate,
  • removeParticipant,
  • setRigid,
  • setShortName

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • Path (java.nio.file)
  • 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
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Reference (javax.naming)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
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