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

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

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

origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Returns the list of labels for the annotated objects provided
 *
 * @param intactObjects list of annotated objects
 *
 * @return a list of labels
 */
public static List<String> labelList( Collection<? extends AnnotatedObject> intactObjects ) {
  List<String> labels = new ArrayList<String>( intactObjects.size() );
  for ( AnnotatedObject io : intactObjects ) {
    labels.add( io.getShortLabel() );
  }
  return labels;
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Returns the list of labels for the annotated objects provided
 *
 * @param intactObjects list of annotated objects
 *
 * @return a list of labels
 */
public static List<String> labelList( Collection<? extends AnnotatedObject> intactObjects ) {
  List<String> labels = new ArrayList<String>( intactObjects.size() );
  for ( AnnotatedObject io : intactObjects ) {
    labels.add( io.getShortLabel() );
  }
  return labels;
}
origin: uk.ac.ebi.intact/intact-core

/**
 * Returns the list of labels for the annotated objects provided
 *
 * @param intactObjects list of annotated objects
 *
 * @return a list of labels
 */
public static List<String> labelList( Collection<? extends AnnotatedObject> intactObjects ) {
  List<String> labels = new ArrayList<String>( intactObjects.size() );
  for ( AnnotatedObject io : intactObjects ) {
    labels.add( io.getShortLabel() );
  }
  return labels;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

@Override
public void visitAnnotatedObject(AnnotatedObject annotatedObject) {
  currentNode.setUserObject(annotatedObject.getClass().getSimpleName()+": "+annotatedObject.getShortLabel());
}
origin: uk.ac.ebi.intact.core/intact-core

@Override
public void visitAnnotatedObject(AnnotatedObject annotatedObject) {
  currentNode.setUserObject(annotatedObject.getClass().getSimpleName()+": "+annotatedObject.getShortLabel());
}
origin: uk.ac.ebi.intact.core/intact-core

@Override
public void visitAnnotatedObject(AnnotatedObject annotatedObject) {
  ps.println(indentation()+annotatedObject.getClass().getSimpleName()+": "+annotatedObject.getShortLabel());
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

@Override
public void visitAnnotatedObject(AnnotatedObject annotatedObject) {
  ps.println(indentation()+annotatedObject.getClass().getSimpleName()+": "+annotatedObject.getShortLabel());
}
origin: uk.ac.ebi.intact.core/intact-core

private <T extends AnnotatedObject> void warnIfInteractionDuplicate( T ao, T managedObject ) {
  if ( log.isWarnEnabled() && ao instanceof Interaction ) {
    Interaction newInteraction = ( Interaction ) ao;
    Interaction existingInteraction = ( Interaction ) managedObject;
    String newImexId = InteractionUtils.getImexIdentifier( newInteraction );
    String existingImexId = InteractionUtils.getImexIdentifier( existingInteraction );
    log.warn( "An AC already exists for this interaction. Possibly a duplicate? : Existing [" + managedObject.getAc() + ", " + managedObject.getShortLabel() + ", " + existingImexId + "] - " +
        "New [-, " + ao.getShortLabel() + ", " + newImexId + "]. The existing interaction will be updated" );
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

private <T extends AnnotatedObject> void warnIfInteractionDuplicate( T ao, T managedObject ) {
  if ( log.isWarnEnabled() && ao instanceof Interaction ) {
    Interaction newInteraction = ( Interaction ) ao;
    Interaction existingInteraction = ( Interaction ) managedObject;
    String newImexId = InteractionUtils.getImexIdentifier( newInteraction );
    String existingImexId = InteractionUtils.getImexIdentifier( existingInteraction );
    log.warn( "An AC already exists for this interaction. Possibly a duplicate? : Existing [" + managedObject.getAc() + ", " + managedObject.getShortLabel() + ", " + existingImexId + "] - " +
        "New [-, " + ao.getShortLabel() + ", " + newImexId + "]. The existing interaction will be updated" );
  }
}
origin: uk.ac.ebi.intact.core/intact-core

protected Key keyForAnnotatedObject(AnnotatedObject annotatedObject) {
  Class normalizedClass = CgLibUtil.removeCglibEnhanced(annotatedObject.getClass());
  return new Key(normalizedClass.getSimpleName() + ":" + annotatedObject.getShortLabel());
}
origin: uk.ac.ebi.intact.core/intact-core

public AnnotatedObjectStatsUnit(AnnotatedObject ao) {
  this.shortLabel = ao.getShortLabel();
  this.ac = ao.getAc();
  this.type = CgLibUtil.removeCglibEnhanced(ao.getClass());
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

protected Key keyForAnnotatedObject(AnnotatedObject annotatedObject) {
  Class normalizedClass = CgLibUtil.removeCglibEnhanced(annotatedObject.getClass());
  return new Key(normalizedClass.getSimpleName() + ":" + annotatedObject.getShortLabel());
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public AnnotatedObjectStatsUnit(AnnotatedObject ao) {
  this.shortLabel = ao.getShortLabel();
  this.ac = ao.getAc();
  this.type = CgLibUtil.removeCglibEnhanced(ao.getClass());
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Create a shortlabel element containing the shortlabel of the given AnnotatatedObject.
 *
 * @param session
 * @param parent  the names element, not null.
 * @param object  the annotatedObject from which we get the shortlabel, not null.
 */
protected void createShortlabel( UserSessionDownload session, Element parent, AnnotatedObject object ) {
  // shortlabel is mandatory in the IntAct API.
  Element shortlabel = session.createElement( "shortLabel" );
  Text shortlabelText = session.createTextNode( object.getShortLabel() );
  shortlabel.appendChild( shortlabelText );
  parent.appendChild( shortlabel );
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Create a shortlabel element containing the shortlabel of the given AnnotatatedObject.
 *
 * @param session
 * @param parent  the names element, not null.
 * @param object  the annotatedObject from which we get the shortlabel, not null.
 */
protected void createShortlabel( UserSessionDownload session, Element parent, AnnotatedObject object ) {
  // shortlabel is mandatory in the IntAct API.
  Element shortlabel = session.createElement( "shortLabel" );
  Text shortlabelText = session.createTextNode( object.getShortLabel() );
  shortlabel.appendChild( shortlabelText );
  parent.appendChild( shortlabel );
}
origin: uk.ac.ebi.intact.app/data-conversion

public SimplifiedAnnotatedObject( AnnotatedObject annotatedObject ) {
  this.ac = annotatedObject.getAc();
  this.shortLabel = annotatedObject.getShortLabel();
  this.created = annotatedObject.getCreated();
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public SimplifiedAnnotatedObject( AnnotatedObject annotatedObject ) {
  this.ac = annotatedObject.getAc();
  this.shortLabel = annotatedObject.getShortLabel();
  this.created = annotatedObject.getCreated();
}
origin: uk.ac.ebi.intact.util/data-conversion

public SimplifiedAnnotatedObject( AnnotatedObject annotatedObject ) {
  this.ac = annotatedObject.getAc();
  this.shortLabel = annotatedObject.getShortLabel();
  this.created = annotatedObject.getCreated();
}
origin: uk.ac.ebi.intact/intact-core

private void insertSearchItemForAnnotatedObject( AnnotatedObject<? extends Xref, ? extends Alias> ao, boolean includeAliases ) {
  if ( log.isDebugEnabled() ) {
    log.debug( "Inserting SearchItems for AnnotatedObject: " + ao.getShortLabel() + " (" + ao.getAc() + ")" );
  }
  for ( SearchItem searchItem : searchItemsForAnnotatedObject( ao, includeAliases ) ) {
    if ( log.isDebugEnabled() ) {
      log.debug( "\t" + searchItem );
    }
    IntactContext.getCurrentInstance().getDataContext().getDaoFactory()
        .getSearchItemDao().persist( searchItem );
  }
}
origin: uk.ac.ebi.intact/intact-core

private void deleteSearchItemsForAnnotatedObject( AnnotatedObject<? extends Xref, ? extends Alias> ao ) {
  if ( log.isDebugEnabled() ) {
    log.debug( "Deleting SearchItems for AnnotatedObject: " + ao.getShortLabel() + " (" + ao.getAc() + ")" );
  }
  IntactContext.getCurrentInstance().getDataContext().getDaoFactory()
      .getSearchItemDao().deleteByAc( ao.getAc() );
}
uk.ac.ebi.intact.modelAnnotatedObjectgetShortLabel

Popular methods of AnnotatedObject

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Socket (java.net)
    Provides a client-side TCP socket.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top 12 Jupyter Notebook extensions
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