Codota Logo
AnnotatedObjectUtils.getAliasClassType
Code IndexAdd Codota to your IDE (free)

How to use
getAliasClassType
method
in
uk.ac.ebi.intact.model.util.AnnotatedObjectUtils

Best Java code snippets using uk.ac.ebi.intact.model.util.AnnotatedObjectUtils.getAliasClassType (Showing top 10 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-readonly

  public static <A extends Alias> A newAliasInstanceFor(Class<? extends AnnotatedObject> aoClass) {
    Class<A> aliasClass = (Class<A>) AnnotatedObjectUtils.getAliasClassType(aoClass);
    return ClassUtils.newInstance(aliasClass);
  }
}
origin: uk.ac.ebi.intact.core/intact-core

  public static <A extends Alias> A newAliasInstanceFor(Class<? extends AnnotatedObject> aoClass) {
    Class<A> aliasClass = (Class<A>) AnnotatedObjectUtils.getAliasClassType(aoClass);
    return ClassUtils.newInstance(aliasClass);
  }
}
origin: uk.ac.ebi.intact/intact-core

  public static <A extends Alias> A newAliasInstanceFor(Class<? extends AnnotatedObject> aoClass) {
    Class<A> aliasClass = (Class<A>) AnnotatedObjectUtils.getAliasClassType(aoClass);
    return ClassUtils.newInstance(aliasClass);
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

public CvObjectConverter(Institution institution, Class<C> intactCvClass, Class<T> psiCvClass) {
  super(institution);
  this.intactCvClass = intactCvClass;
  this.psiCvClass = psiCvClass;
  Class<?> aliasClass = AnnotatedObjectUtils.getAliasClassType(intactCvClass);
  Class<?> xrefClass = AnnotatedObjectUtils.getXrefClassType(intactCvClass);
  this.aliasConverter = new AliasConverter(institution, aliasClass);
  this.xrefConverter = new XrefConverter(institution, xrefClass);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

public AbstractAnnotatedObjectConverter(Institution institution, Class<? extends A> intactClass, Class<T> psiClass) {
  super(institution);
  this.intactClass = intactClass;
  this.psiClass = psiClass;
  Class<?> aliasClass = AnnotatedObjectUtils.getAliasClassType(intactClass);
  Class<?> xrefClass = AnnotatedObjectUtils.getXrefClassType(intactClass);
  this.annotationConverter = new AnnotationConverter(institution);
  this.aliasConverter = new AliasConverter(institution, aliasClass);
  this.xrefConverter = new XrefConverter(institution, xrefClass);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

public static void populateNames(Names names, AnnotatedObject<?, ?> annotatedObject) {
  String shortLabel = getShortLabelFromNames(names);
  if (names == null && (annotatedObject instanceof Experiment) ) {
    shortLabel = createExperimentTempShortLabel();
  }
  if ( ! ( annotatedObject instanceof Institution ) ) {
    if ( shortLabel != null ) {
      shortLabel = shortLabel.toLowerCase();
    }
  }
  annotatedObject.setShortLabel(shortLabel);
  if (names != null) {
    annotatedObject.setFullName(names.getFullName());
    Class<?> aliasClass = AnnotatedObjectUtils.getAliasClassType(annotatedObject.getClass());
    AliasConverter aliasConverter = new AliasConverter(getInstitution(annotatedObject), aliasClass);
    populateAliases(names.getAliases(), annotatedObject, aliasConverter);
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

public static void populateNames(Names names, AnnotatedObject<?, ?> annotatedObject, AliasConverter aliasConverter) {
  String shortLabel = getShortLabelFromNames(names);
  if (names == null && (annotatedObject instanceof Experiment) ) {
    shortLabel = createExperimentTempShortLabel();
  }
  if ( ! ( annotatedObject instanceof Institution ) ) {
    if ( shortLabel != null ) {
      shortLabel = shortLabel.toLowerCase();
    }
  }
  annotatedObject.setShortLabel(shortLabel);
  if (names != null) {
    annotatedObject.setFullName(names.getFullName());
    if (aliasConverter == null){
      Class<?> aliasClass = AnnotatedObjectUtils.getAliasClassType(annotatedObject.getClass());
      aliasConverter = new AliasConverter(getInstitution(annotatedObject), aliasClass);
    }
    populateAliases(names.getAliases(), annotatedObject, aliasConverter);
  }
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Retrieves the aliases from an AnnotatedObject, initializing them if necessary.
 *
 * @param ao The annotated object instance with possibly non-initialized aliases
 * @return The returned aliases are ensured to be initialized
 * @since 2.4.0
 */
public static Collection<? extends Alias> ensureInitializedAliases(AnnotatedObject<?, ?> ao) {
  Collection<? extends Alias> aliases;
  if (IntactCore.isInitialized(ao.getAliases())) {
    aliases = ao.getAliases();
  } else {
    aliases = IntactContext.getCurrentInstance().getDaoFactory().getAliasDao(AnnotatedObjectUtils.getAliasClassType(ao.getClass()))
        .getByParentAc(ao.getAc());
  }
  return aliases;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Retrieves the aliases from an AnnotatedObject, initializing them if necessary.
 *
 * @param ao The annotated object instance with possibly non-initialized aliases
 * @return The returned aliases are ensured to be initialized
 * @since 2.4.0
 */
public static Collection<? extends Alias> ensureInitializedAliases(AnnotatedObject<?, ?> ao) {
  Collection<? extends Alias> aliases;
  if (IntactCore.isInitialized(ao.getAliases())) {
    aliases = ao.getAliases();
  } else {
    aliases = IntactContext.getCurrentInstance().getDaoFactory().getAliasDao(AnnotatedObjectUtils.getAliasClassType(ao.getClass()))
        .getByParentAc(ao.getAc());
  }
  return aliases;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

protected static void populateNames( AnnotatedObject<?, ?> annotatedObject, NamesContainer namesContainer ) {
  Names names = namesContainer.getNames();
  if ( names == null ) {
    names = new Names();
  }
  String shortLabel = annotatedObject.getShortLabel();
  String fullName = annotatedObject.getFullName();
  names.setShortLabel( shortLabel );
  names.setFullName( fullName );
  if ( !ConverterContext.getInstance().getInteractorConfig().isExcludeInteractorAliases() ) {
    AliasConverter aliasConverter = new AliasConverter( annotatedObject.getOwner(),
        AnnotatedObjectUtils.getAliasClassType( annotatedObject.getClass() ) );
    for ( Alias alias : IntactCore.ensureInitializedAliases(annotatedObject)) {
      names.getAliases().add( aliasConverter.intactToPsi( alias ) );
    }
  }
  namesContainer.setNames( names );
}
uk.ac.ebi.intact.model.utilAnnotatedObjectUtilsgetAliasClassType

Javadoc

Gets the generic Xref type for an AnnotatedObject class

Popular methods of AnnotatedObjectUtils

  • getXrefClassType
    Gets the generic Xref type for an AnnotatedObject class
  • findAnnotationByTopicMiOrLabel
    Finds an Annotations with a topic that has an MI or label equal to the value provided
  • getParameterizedType
  • prepareShortLabel
    Trims a shortlabel if it is too long to be inserted in the database.
  • searchXrefs
    Retrieve the xrefs from an annotated object that comply with the filter.
  • areCollectionEqual
    Method to compare Annotation, Xref and Aliases collections
  • containSameAliases
  • containSameAnnotations
  • containSameCollections
    Checks if two given annotated objects contain the same set of annotations, xrefs and aliases
  • containSameXrefs
  • containTheSameXrefs
    Check if the passed annotated objects contain the same set of filtered Xrefs.
  • createUniqueString
    Creates unique strings for Annotations,Xrefs and aliases.
  • containTheSameXrefs,
  • createUniqueString,
  • findParent,
  • isChildrenInitialized,
  • isCvTopicPublic,
  • isNewOrManaged,
  • removeChild,
  • searchXrefsByDatabase,
  • searchXrefsByQualifier

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Path (java.nio.file)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
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