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

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

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

Annotation.getOwner介绍

暂无

代码示例

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

protected void traverseAnnotation(Annotation annotation, IntactVisitor... visitors) {
  if (annotation == null) return;
  for (IntactVisitor visitor : visitors) {
    visitor.visitAnnotation(annotation);
  }
  // check if this element has been traversed already, to avoid cyclic recursion
  if (recursionChecker.isAlreadyTraversed(annotation)) {
    return;
  }
  traverse(annotation.getCvTopic(), visitors);
  traverse(annotation.getOwner(), visitors);
}

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

protected void traverseAnnotation(Annotation annotation, IntactVisitor... visitors) {
  if (annotation == null) return;
  for (IntactVisitor visitor : visitors) {
    visitor.visitAnnotation(annotation);
  }
  // check if this element has been traversed already, to avoid cyclic recursion
  if (recursionChecker.isAlreadyTraversed(annotation)) {
    return;
  }
  traverse(annotation.getCvTopic(), visitors);
  traverse(annotation.getOwner(), visitors);
}

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

@Override
protected void saveOrUpdateAttributes( T intactObject ) throws PersisterException {
  if ( intactObject == null ) {
    throw new NullPointerException( "intactObject" );
  }
  InstitutionPersister institutionPersister = InstitutionPersister.getInstance();
  institutionPersister.saveOrUpdate( intactObject.getOwner() );
  CvObjectPersister cvPersister = CvObjectPersister.getInstance();
  for ( Xref xref : intactObject.getXrefs() ) {
    cvPersister.saveOrUpdate( xref.getCvDatabase() );
    if ( xref.getCvXrefQualifier() != null ) {
      cvPersister.saveOrUpdate( xref.getCvXrefQualifier() );
    }
    institutionPersister.saveOrUpdate( xref.getOwner() );
  }
  for ( Alias alias : intactObject.getAliases() ) {
    if ( alias.getCvAliasType() != null ) {
      cvPersister.saveOrUpdate( alias.getCvAliasType() );
    }
    institutionPersister.saveOrUpdate( alias.getOwner() );
  }
  
  for ( Annotation annotation : intactObject.getAnnotations() ) {
    if ( annotation.getCvTopic() != null ) {
      cvPersister.saveOrUpdate( annotation.getCvTopic() );
    }
    institutionPersister.saveOrUpdate( annotation.getOwner() );
  }
}

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

annotation.setCvTopic(cvTopic);
annotation.setOwner(institutionPersister.syncIfTransient(annotation.getOwner()));

相关文章