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

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

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

Annotation.setOwner介绍

暂无

代码示例

代码示例来源: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.psimi/intact-psixml-converters

public static void populateAnnotations(Collection<Attribute> attributesToConvert, Annotated annotated, Institution institution) {
  AnnotationConverter annotationConverter = new AnnotationConverter(institution);
  if (!attributesToConvert.isEmpty()) {
    for (Attribute attribute : attributesToConvert) {
      Annotation annotation = annotationConverter.psiToIntact(attribute);
      annotation.setOwner(institution);
      if (!annotated.getAnnotations().contains(annotation)) {
        annotated.getAnnotations().add(annotation);
      }
    }
  }
}

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

public static void populateAnnotations(Collection<Attribute> attributesToConvert, Annotated annotated, Institution institution, AnnotationConverter annotationConverter) {
  if (annotationConverter == null){
    annotationConverter = new AnnotationConverter(institution);
  }
  if (!attributesToConvert.isEmpty()) {
    for (Attribute attribute : attributesToConvert) {
      Annotation annotation = annotationConverter.psiToIntact(attribute);
      annotation.setOwner(institution);
      if (!annotated.getAnnotations().contains(annotation)) {
        annotated.getAnnotations().add(annotation);
      }
    }
  }
}

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

public static void populateAnnotations(AttributeContainer attributeContainer, Annotated annotated, Institution institution) {
  AnnotationConverter annotationConverter = new AnnotationConverter(institution);
  if (attributeContainer.hasAttributes()) {
    for (Attribute attribute : attributeContainer.getAttributes()) {
      Annotation annotation = annotationConverter.psiToIntact(attribute);
      annotation.setOwner(institution);
      if (!annotated.getAnnotations().contains(annotation)) {
        annotated.getAnnotations().add(annotation);
      }
    }
  }
}

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

public static void populateAnnotations(AttributeContainer attributeContainer, Annotated annotated, Institution institution, AnnotationConverter annotationConverter) {
  if (annotationConverter == null){
    annotationConverter = new AnnotationConverter(institution);
  }
  if (attributeContainer.hasAttributes()) {
    for (Attribute attribute : attributeContainer.getAttributes()) {
      Annotation annotation = annotationConverter.psiToIntact(attribute);
      annotation.setOwner(institution);
      if (!annotated.getAnnotations().contains(annotation)) {
        annotated.getAnnotations().add(annotation);
      }
    }
  }
}

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

public C psiToIntact(T psiObject) {
  psiStartConversion(psiObject);
  C cv = super.psiToIntact(psiObject);
  if (!psiObject.getAttributes().isEmpty()) {
    for (Attribute attribute : psiObject.getAttributes()) {
      Annotation annotation = annotationConverter.psiToIntact(attribute);
      annotation.setOwner(getInstitution());
      if (!cv.getAnnotations().contains(annotation)) {
        cv.getAnnotations().add(annotation);
      }
    }
  }
  psiEndConversion(psiObject);
  return cv;
}

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

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

相关文章