Tabnine Logo
AnnotatedObject.setShortLabel
Code IndexAdd Tabnine to your IDE (free)

How to use
setShortLabel
method
in
uk.ac.ebi.intact.model.AnnotatedObject

Best Java code snippets using uk.ac.ebi.intact.model.AnnotatedObject.setShortLabel (Showing top 4 results out of 315)

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-readonly

clone.setShortLabel(ao.getShortLabel());
clone.setFullName(ao.getFullName());
origin: uk.ac.ebi.intact.core/intact-core

clone.setShortLabel(ao.getShortLabel());
clone.setFullName(ao.getFullName());
uk.ac.ebi.intact.modelAnnotatedObjectsetShortLabel

Popular methods of AnnotatedObject

  • getAnnotations
  • getAc
  • getShortLabel
  • getXrefs
  • getAliases
  • getOwner
  • getFullName
  • getCreated
  • addAnnotation
  • setOwner
  • addAlias
  • addXref
  • addAlias,
  • addXref,
  • setAc,
  • setFullName,
  • getCreator,
  • removeAlias,
  • removeAnnotation,
  • removeXref,
  • setCreated

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • 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
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Table (org.hibernate.mapping)
    A relational table
  • Top PhpStorm plugins
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