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

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

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

origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Create a fullname element containing the fullname of the given AnnotatatedObject.
 *
 * @param session
 * @param parent  the names element, not null.
 * @param object  the annotatedObject from which we get the fullname, not null.
 */
protected void createFullname( UserSessionDownload session, Element parent, AnnotatedObject object ) {
  // fullname is NOT mandatory in the IntAct API.
  if ( object.getFullName() != null && !"".equals( object.getFullName().trim() ) ) {
    Element fullname = session.createElement( "fullName" );
    Text fullnameText = session.createTextNode( object.getFullName() );
    fullname.appendChild( fullnameText );
    parent.appendChild( fullname );
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Create a fullname element containing the fullname of the given AnnotatatedObject.
 *
 * @param session
 * @param parent  the names element, not null.
 * @param object  the annotatedObject from which we get the fullname, not null.
 */
protected void createFullname( UserSessionDownload session, Element parent, AnnotatedObject object ) {
  // fullname is NOT mandatory in the IntAct API.
  if ( object.getFullName() != null && !"".equals( object.getFullName().trim() ) ) {
    Element fullname = session.createElement( "fullName" );
    Text fullnameText = session.createTextNode( object.getFullName() );
    fullname.appendChild( fullnameText );
    parent.appendChild( fullname );
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Create a fullname element containing the fullname of the given AnnotatatedObject.
 *
 * @param session
 * @param parent  the names element, not null.
 * @param object  the annotatedObject from which we get the fullname, not null.
 */
protected void createFullname( UserSessionDownload session, Element parent, AnnotatedObject object ) {
  // fullname is NOT mandatory in the IntAct API.
  if ( object.getFullName() != null && !"".equals( object.getFullName().trim() ) ) {
    Element fullname = session.createElement( "fullName" );
    Text fullnameText = session.createTextNode( object.getFullName() );
    fullname.appendChild( fullnameText );
    parent.appendChild( fullname );
  }
}
origin: uk.ac.ebi.intact/intact-core

private static List<SearchItem> searchItemsForAnnotatedObject( AnnotatedObject<? extends Xref, ? extends Alias> ao, boolean includeAliases ) {
  List<SearchItem> searchItems = new ArrayList<SearchItem>();
  searchItems.add( new SearchItem( ao.getAc(), ao.getAc(), ao.getClass().getName(), "ac" ) );
  searchItems.add( new SearchItem( ao.getAc(), ao.getShortLabel(), ao.getClass().getName(), "shortlabel" ) );
  if ( ao.getFullName() != null ) {
    searchItems.add( new SearchItem( ao.getAc(), ao.getFullName(), ao.getClass().getName(), "fullname" ) );
  }
  if ( includeAliases ) {
    for ( Alias alias : ao.getAliases() ) {
      if ( alias.getCvAliasType() != null ) {
        searchItems.add( new SearchItem( ao.getAc(), alias.getName(), ao.getClass().getName(), alias.getCvAliasType().getShortLabel() ) );
      } else {
        log.warn( "Couldn't insert SearchItem for Alias, as it cvAliasType is null: " + alias.getName() );
      }
    }
  }
  return searchItems;
}
origin: uk.ac.ebi.intact/intact-core

if ( !fullName.equals( annotatedObject.getFullName() ) ) {
  return false;
if ( annotatedObject.getFullName() != null ) {
  return false;
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 );
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

public static void populateNames( AnnotatedObject<?, ?> annotatedObject, NamesContainer namesContainer, AliasConverter aliasConverter ) {
  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() ) {
    Collection<? extends Alias> aliases;
    if (aliasConverter.isCheckInitializedCollections()){
      aliases = IntactCore.ensureInitializedAliases(annotatedObject);
    }
    else {
      aliases = annotatedObject.getAliases();
    }
    for ( Alias alias : aliases) {
      names.getAliases().add( aliasConverter.intactToPsi( alias ) );
    }
  }
  namesContainer.setNames( names );
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

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

clone.setFullName(ao.getFullName());
uk.ac.ebi.intact.modelAnnotatedObjectgetFullName

Popular methods of AnnotatedObject

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

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Best plugins for Eclipse
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