本文整理了Java中uk.ac.ebi.intact.model.Annotation.getOwner()
方法的一些代码示例,展示了Annotation.getOwner()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.getOwner()
方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.Annotation
类名称: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()));
内容来源于网络,如有侵权,请联系作者删除!