Codota Logo
IntactCore.ensureInitializedXrefs
Code IndexAdd Codota to your IDE (free)

How to use
ensureInitializedXrefs
method
in
uk.ac.ebi.intact.core.persister.IntactCore

Best Java code snippets using uk.ac.ebi.intact.core.persister.IntactCore.ensureInitializedXrefs (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.core/intact-core

public static boolean containSameXrefs(AnnotatedObject ao1, AnnotatedObject ao2) {
  return areCollectionEqual(IntactCore.ensureInitializedXrefs(ao1), IntactCore.ensureInitializedXrefs(ao2));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public static boolean containSameXrefs(AnnotatedObject ao1, AnnotatedObject ao2) {
  return areCollectionEqual(IntactCore.ensureInitializedXrefs(ao1), IntactCore.ensureInitializedXrefs(ao2));
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Retrieve the xrefs from an annotated object that comply with the filter.
 *
 * @param ao         The annotated object
 * @param xrefFilter The xref filter
 * @return The collection of filtered xrefs
 * @since 1.9.0
 */
public static <X extends Xref> List<X> searchXrefs(AnnotatedObject<X, ?> ao, XrefCvFilter xrefFilter) {
  List<X> xrefList = new ArrayList<X>();
  CollectionUtils.select(IntactCore.ensureInitializedXrefs(ao), new IntactObjectFilterPredicate(xrefFilter), xrefList);
  return xrefList;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Retrieve the xrefs from an annotated object that comply with the filter.
 *
 * @param ao         The annotated object
 * @param xrefFilter The xref filter
 * @return The collection of filtered xrefs
 * @since 1.9.0
 */
public static <X extends Xref> List<X> searchXrefs(AnnotatedObject<X, ?> ao, XrefCvFilter xrefFilter) {
  List<X> xrefList = new ArrayList<X>();
  CollectionUtils.select(IntactCore.ensureInitializedXrefs(ao), new IntactObjectFilterPredicate(xrefFilter), xrefList);
  return xrefList;
}
origin: uk.ac.ebi.intact.core/intact-core

public static boolean containSameAliases(AnnotatedObject ao1, AnnotatedObject ao2) {
  return areCollectionEqual(IntactCore.ensureInitializedAliases(ao1), IntactCore.ensureInitializedXrefs(ao2));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public static boolean containSameAliases(AnnotatedObject ao1, AnnotatedObject ao2) {
  return areCollectionEqual(IntactCore.ensureInitializedAliases(ao1), IntactCore.ensureInitializedXrefs(ao2));
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

  protected Collection<Xref> searchXrefs(AnnotatedObject intactObject, String databaseMiRef, String qualifierMiRef, boolean checkInitializedXrefs){
    Collection<Xref> xrefs;
    if (checkInitializedXrefs){
      xrefs = new ArrayList<Xref>(IntactCore.ensureInitializedXrefs(intactObject));
    }
    else {
      xrefs = intactObject.getXrefs();
    }

    if (xrefs.isEmpty()){
       return Collections.EMPTY_LIST;
    }

    Collection<Xref> results = new ArrayList<Xref>(xrefs.size());

    for (Xref xref : xrefs){
      if (xref.getCvDatabase() != null && xref.getCvDatabase().getIdentifier() != null){
         if (xref.getCvDatabase().getIdentifier().equals(databaseMiRef)){
           if (xref.getCvXrefQualifier() != null && xref.getCvXrefQualifier().getIdentifier() != null){
             if (xref.getCvXrefQualifier().getIdentifier().equals(qualifierMiRef)){
                results.add(xref);
             }
           }
         }
      }
    }

    return results;
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

protected Xref getImexXref(Interaction interaction) {
  Collection<? extends Xref> refs;
  if (isCheckInitializedCollections()){
    refs = IntactCore.ensureInitializedXrefs(interaction);
  }
  else {
    refs = interaction.getXrefs();
  }
  for (Xref xref : refs) {
    if (CvDatabase.IMEX_MI_REF.equals(xref.getCvDatabase().getIdentifier())
        && xref.getCvXrefQualifier() != null
        && CvXrefQualifier.IMEX_PRIMARY_MI_REF.equals(xref.getCvXrefQualifier().getIdentifier())) {
      return xref;
    }
  }
  return null;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

  for ( uk.ac.ebi.intact.model.Xref xref : IntactCore.ensureInitializedXrefs(annotatedObject)) {
    if (annotatedObject.getAc().equals(xref.getPrimaryId())) {
      containsAcXref = true;
Collection<DbReference> dbRefs = toDbReferences( annotatedObject, IntactCore.ensureInitializedXrefs(annotatedObject));
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

xrefs = IntactCore.ensureInitializedXrefs(annotatedObject);
origin: uk.ac.ebi.intact.core/intact-core-readonly

Collection<? extends Xref> refs = IntactCore.ensureInitializedXrefs(ao);
origin: uk.ac.ebi.intact.core/intact-core

Collection<? extends Xref> refs = IntactCore.ensureInitializedXrefs(ao);
uk.ac.ebi.intact.core.persisterIntactCoreensureInitializedXrefs

Javadoc

Retrieves the xrefs from an AnnotatedObject, initializing them if necessary.

Popular methods of IntactCore

  • ensureInitializedAliases
    Retrieves the aliases from an AnnotatedObject, initializing them if necessary.
  • ensureInitializedAnnotations
    Retrieves the annotations from an AnnotatedObject, initializing them if necessary.
  • ensureInitializedComponentConfidences
    Retrieves the confidences from a participant, initializing them if necessary. Do not set the initial
  • ensureInitializedComponentParameters
    Retrieves the parameters from a participant, initializing them if necessary. Do not set the initiali
  • ensureInitializedConfidences
    Retrieves the confidences from an interaction, initializing them if necessary. Do not set the initia
  • ensureInitializedExperimentalPreparations
    Retrieves the experimental preparations from a participant, initializing them if necessary. Do not s
  • ensureInitializedExperimentalRoles
    Retrieves the experimental roles from a participant, initializing them if necessary. Do not set the
  • ensureInitializedExperiments
    Retrieves the experiment from a publication, initializing them if necessary.
  • ensureInitializedFeatures
    Retrieves the features from a participant, initializing them if necessary. Do not set the initialize
  • ensureInitializedInteractionParameters
    Retrieves the parameters from an interaction, initializing them if necessary. Do not set the initial
  • ensureInitializedParticipantIdentificationMethods
    Retrieves the participant detection methods from a participant, initializing them if necessary. Do n
  • ensureInitializedParticipants
    Retrieves the components from an interaction, initializing them if necessary. Do not set the initial
  • ensureInitializedParticipantIdentificationMethods,
  • ensureInitializedParticipants,
  • ensureInitializedRanges,
  • ensureInitializedInteractions,
  • ensureInitializedLifecycleEvents,
  • ensureInitializedPreferences,
  • ensureInitializedRoles,
  • initialize,
  • initializeAnnotatedObject

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • startActivity (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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