uk.ac.ebi.intact.model.Annotation.setCvTopic()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中uk.ac.ebi.intact.model.Annotation.setCvTopic()方法的一些代码示例,展示了Annotation.setCvTopic()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.setCvTopic()方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.Annotation
类名称:Annotation
方法名:setCvTopic

Annotation.setCvTopic介绍

暂无

代码示例

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

/**
 * Creates a valid Annotation instance. A valid instance must have at least
 * a non-null Institution specified. A side-effect of this constructor is to
 * set the <code>created</code> and <code>updated</code> fields of the instance
 * to the current time.
 *
 * @param topic Refers to the controlled vocabulary topic this Annotation relates
 *              to. This should be non-null.
 *
 * @throws NullPointerException thrown if no Institution specified.
 */
public Annotation( CvTopic topic ) {
  //super call sets creation time data
  super( );
  setCvTopic( topic );
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Creates a valid Annotation instance. A valid instance must have at least
 * a non-null Institution specified. A side-effect of this constructor is to
 * set the <code>created</code> and <code>updated</code> fields of the instance
 * to the current time.
 *
 * @param topic Refers to the controlled vocabulary topic this Annotation relates
 *              to. This should be non-null.
 *
 * @throws NullPointerException thrown if no Institution specified.
 */
public Annotation( CvTopic topic ) {
  //super call sets creation time data
  super( );
  setCvTopic( topic );
}

代码示例来源:origin: uk.ac.ebi.intact/intact-core

/**
 * Creates a valid Annotation instance. A valid instance must have at least
 * a non-null Institution specified. A side-effect of this constructor is to
 * set the <code>created</code> and <code>updated</code> fields of the instance
 * to the current time.
 *
 * @param owner The <code>Institution</code> which 'owns' this BioSource
 * @param topic Refers to the controlled vocabulary topic this Annotation relates
 *              to. This should be non-null.
 *
 * @throws NullPointerException thrown if no Institution specified.
 */
public Annotation( Institution owner, CvTopic topic ) {
  //super call sets creation time data
  super( owner );
  setCvTopic( topic );
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

@Deprecated
public Annotation( Institution owner, CvTopic topic ) {
  //super call sets creation time data
  super( );
  setCvTopic( topic );
  setOwner(owner);
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

@Deprecated
public Annotation( Institution owner, CvTopic topic ) {
  //super call sets creation time data
  super( );
  setCvTopic( topic );
  setOwner(owner);
}

代码示例来源:origin: uk.ac.ebi.intact.dataexchange/intact-cvutils

@Override
  public void visitAnnotation( Annotation annotation ) {
    final CvTopic topic = annotation.getCvTopic();
    final String mi = topic.getIdentifier();
    if ( mi != null ) {
      final CvTopic oboTerm = ( CvTopic ) mi2cv.get( createCvKey( topic.getClass(), mi ) );
      if ( oboTerm == null ) {
        log.warn( "Could not find topic " + topic.getClass().getSimpleName() + "( " + topic.getShortLabel() + " ) by MI: " + mi );
      } else {
        annotation.setCvTopic( oboTerm );
      }
    }
  }
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

protected Annotation cloneAnnotation(Annotation annotation) throws IntactClonerException {
  if (annotation == null) return null;
  Annotation clone = new Annotation();
  clonerManager.addClone(annotation, clone);
  clone.setCvTopic(clone(annotation.getCvTopic()));
  clone.setAnnotationText(annotation.getAnnotationText());
  return clone;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

protected Annotation cloneAnnotation(Annotation annotation) throws IntactClonerException {
  if (annotation == null) return null;
  Annotation clone = new Annotation();
  clonerManager.addClone(annotation, clone);
  clone.setCvTopic(clone(annotation.getCvTopic()));
  clone.setAnnotationText(annotation.getAnnotationText());
  return clone;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

private Annotation synchronizeAnnotation( Annotation annotation, AnnotatedObject parent ) {
  if (annotation.getAc() != null) {
    return IntactContext.getCurrentInstance().getDataContext().getDaoFactory()
        .getAnnotationDao().getByAc(annotation.getAc());
  }
  else {
  }
  annotation.setCvTopic( synchronize( annotation.getCvTopic() ) );
  if (annotation.getAc() == null && parent.getAc() != null) {
    annotatedObjectsToPersist.put(keyBuilder.keyForAnnotation(annotation, parent), annotation);
  }
  return annotation;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

private Annotation synchronizeAnnotation( Annotation annotation, AnnotatedObject parent ) {
  if (annotation.getAc() != null) {
    return IntactContext.getCurrentInstance().getDataContext().getDaoFactory()
        .getAnnotationDao().getByAc(annotation.getAc());
  }
  else {
  }
  annotation.setCvTopic( synchronize( annotation.getCvTopic() ) );
  if (annotation.getAc() == null && parent.getAc() != null) {
    annotatedObjectsToPersist.put(keyBuilder.keyForAnnotation(annotation, parent), annotation);
  }
  return annotation;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-persister

annotation.setCvTopic(cvTopic);

相关文章