congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Interactor.getChecksums
Code IndexAdd Tabnine to your IDE (free)

How to use
getChecksums
method
in
psidev.psi.mi.jami.model.Interactor

Best Java code snippets using psidev.psi.mi.jami.model.Interactor.getChecksums (Showing top 6 results out of 315)

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

public void writeParticipantChecksums(P participant) throws IOException {
  if (participant != null){
    if (!participant.getInteractor().getChecksums().isEmpty()){
      Iterator<Checksum> checksumIterator = participant.getInteractor().getChecksums().iterator();
      while(checksumIterator.hasNext()){
        writeChecksum(checksumIterator.next());
        if (checksumIterator.hasNext()){
          getWriter().write(MitabUtils.FIELD_SEPARATOR);
        }
      }
    }
    else{
      getWriter().write(MitabUtils.EMPTY_COLUMN);
    }
  }
  else {
    getWriter().write(MitabUtils.EMPTY_COLUMN);
  }
}
origin: psidev.psi.mi.jami/jami-mitab

protected void createChecksumFromAltId(Interactor interactor, MitabXref ref) {
  // create checksum from xref
  MitabChecksum checksum = new MitabChecksum(ref.getDatabase(), ref.getId(), ref.getSourceLocator());
  interactor.getChecksums().add(checksum);
  if (listener != null){
    listener.onSyntaxWarning(ref, "Found a Checksum in the alternative identifiers column. Will load it as a checksum.");
  }
}
origin: psidev.psi.mi.jami/jami-mitab

protected void createChecksumFromAlias(Interactor interactor, MitabAlias alias) {
  // create checksum from alias
  MitabChecksum checksum = new MitabChecksum(alias.getType(), alias.getName(), alias.getSourceLocator());
  interactor.getChecksums().add(checksum);
  if (listener != null){
    listener.onSyntaxWarning(alias, "Found a Checksum in the aliases column. Will load it as a checksum.");
  }
}
origin: psidev.psi.mi.jami/jami-core

/***
 * This method will copy properties of interactor source in interactor target and will override all the other properties of Target interactor.
 * @param source
 * @param target
 */
public static void copyAndOverrideBasicInteractorProperties(Interactor source, Interactor target){
  if (source != null && target != null){
    target.setShortName(source.getShortName());
    target.setFullName(source.getFullName());
    target.setInteractorType(source.getInteractorType());
    target.setOrganism(source.getOrganism());
    // copy collections
    target.getAnnotations().clear();
    target.getAnnotations().addAll(source.getAnnotations());
    target.getIdentifiers().clear();
    target.getIdentifiers().addAll(source.getIdentifiers());
    target.getAliases().clear();
    target.getAliases().addAll(source.getAliases());
    target.getXrefs().clear();
    target.getXrefs().addAll(source.getXrefs());
    target.getChecksums().clear();
    target.getChecksums().addAll(source.getChecksums());
  }
}
origin: psidev.psi.mi.jami/jami-mitab

interactor.getChecksums().addAll(checksum);
origin: psidev.psi.mi/psimi-schema-validator

for (Checksum a : interactor.getChecksums()){
  checkChecksum(messages, a, interactor, "interactor");
psidev.psi.mi.jami.modelInteractorgetChecksums

Javadoc

Set of checksums computed for this interactor. The Collection cannot be null so when an interactor does not have a checksum, the method should return an empty Collection Ex: rogid:u1FCes02jPb3CGRj1aDkzpbSiuI9606, standard Inchi key, ...

Popular methods of Interactor

  • getShortName
    The short name of the interactor. It cannot be null or empty. Ex: brca2
  • getAliases
    Collection of aliases for an interactor The Collection cannot be null and if the interactor does not
  • getAnnotations
    Collection of annotations for an interactor. The set cannot be null and if the interactor does not h
  • getIdentifiers
    Set of identifiers for this interactor. The identifiers can be from different databases, can be prim
  • getInteractorType
    The molecule type of this interactor. It is a controlled vocabulary term and cannot be null. Ex: pro
  • getOrganism
    The original source organism for this interactor. It can be null in case of chemical compounds/synth
  • getXrefs
    Collection of other xrefs that give more information about the interactor. Ex: GO references to give
  • getFullName
    The full name of the interactor. It can be null Ex: Breast cancer type 2 susceptibility protein
  • getPreferredIdentifier
    The identifier in the list of identifiers which is the preferred identifier. If no identifiers is pr
  • setFullName
    Sets the full name of the interactor
  • setOrganism
    Sets the source organism of this interactor
  • setInteractorType
    Sets the molecule type for this interactor If the given type is null, this method automatically sets
  • setOrganism,
  • setInteractorType,
  • setShortName

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now