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

x33g5p2x  于2022-01-21 转载在 其他  
字(8.6k)|赞(0)|评价(0)|浏览(122)

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

Interaction.getCvInteractionType介绍

暂无

代码示例

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

public Collection<GeneralMessage> check(Interaction interaction) throws SanityRuleException {
    Collection<GeneralMessage> messages = new ArrayList<GeneralMessage>();
    if(interaction.getCvInteractionType() == null){
      messages.add(new GeneralMessage( MessageDefinition.INTERACTION_WITHOUT_TYPE, interaction ));
    }
    return messages;
  }
}

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

/****************************/
// enrich fields in the SolrDocument passed as parameter
public void enrich (
    Interaction interaction,
    SolrInputDocument solrDocument )
    throws Exception {
  // check parameters and information
  if ( interaction == null ) { return ; }
  // Enrich interaction type
  enrichInteractionType(interaction.getCvInteractionType(), solrDocument) ;
  // Enrich Complex Organism fields
  enrichOrganism(interaction, solrDocument) ;
  // Enrich Complex Xref fields
  enrichInteractionXref(interaction.getXrefs(), solrDocument) ;
}

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

@Override
protected void saveOrUpdateAttributes(Interaction intactObject) throws PersisterException {
  super.saveOrUpdateAttributes(intactObject);
  
  CvObjectPersister.getInstance().saveOrUpdate(intactObject.getCvInteractionType());
  saveOrUpdateComponents(intactObject);
  saveOrUpdateExperiments(intactObject);
}

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

if ( !cvInteractionType.equals( interaction.getCvInteractionType() ) ) {
  return false;
if ( interaction.getCvInteractionType() != null ) {
  return false;

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

@Override
protected Interaction syncAttributes(Interaction intactObject) {
  CvInteractionType cvIntType = (CvInteractionType) CvObjectPersister.getInstance().syncIfTransient(intactObject.getCvInteractionType());
  intactObject.setCvInteractionType(cvIntType);
  syncComponents(intactObject);
  syncExperiments(intactObject);
  return super.syncAttributes(intactObject);
}

代码示例来源:origin: uk.ac.ebi.intact.app/data-conversion

if ( interaction.getCvInteractionType() != null ) {
  CvObject2xmlFactory.getInstance( session ).create( session, element, interaction.getCvInteractionType() );

代码示例来源:origin: uk.ac.ebi.intact/intact-ebi-search-engine-export

for ( Component c : interactor.getActiveInstances() ) {
  Interaction interaction = c.getInteraction();
  cvs.add( interaction.getCvInteractionType() );
  for ( Experiment e : interaction.getExperiments() ) {
    cvs.add( e.getCvIdentification() );

代码示例来源:origin: uk.ac.ebi.intact/intact-ebi-search-engine-export

writeCvTerm( out, interaction.getCvInteractionType(), iii );

代码示例来源:origin: uk.ac.ebi.intact/intact-ebi-search-engine-export

cvs.add( interaction.getCvInteractionType() );

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

if (interaction.getCvInteractionType() != null){
  CrossReference type = cvObjectConverter.toCrossReference(interaction.getCvInteractionType());

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

if ( !cvInteractionType.equals( interaction.getCvInteractionType() ) ) {
  return false;
if ( interaction.getCvInteractionType() != null ) {
  return false;

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

if ( !cvInteractionType.equals( interaction.getCvInteractionType() ) ) {
  return false;
if ( interaction.getCvInteractionType() != null ) {
  return false;

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

private void synchronizeInteraction( Interaction interaction, boolean synchronizeAnnotatedAttributes ) {
  interaction.setCvInteractionType( synchronize( interaction.getCvInteractionType() ) );
  interaction.setCvInteractorType( synchronize( interaction.getCvInteractorType() ) );
  if (IntactCore.isInitializedAndDirty(interaction.getComponents())){
    Collection<Component> components = synchronizeCollection(interaction.getComponents());
    interaction.getComponents().clear();
    interaction.getComponents().addAll(components);
  }
  interaction.setBioSource( synchronize( interaction.getBioSource() ) );
  if (IntactCore.isInitializedAndDirty(interaction.getExperiments())){
    Collection<Experiment> experiment = synchronizeCollection(interaction.getExperiments());
    interaction.getExperiments().clear();
    interaction.getExperiments().addAll(experiment);
  }
  // cannot call setConfidences in interaction because of orphan relationship limitation
  if (IntactCore.isInitializedAndDirty(interaction.getConfidences())){
    Collection<Confidence> confidences = synchronizeConfidences(interaction.getConfidences(), interaction);
    interaction.getConfidences().clear();
    interaction.getConfidences().addAll(confidences);
  }
  // cannot call setParameters in interaction because of orphan relationship limitation
  if (IntactCore.isInitializedAndDirty(interaction.getParameters())){
    Collection<InteractionParameter> interactionParameters = synchronizeInteractionParameters(interaction.getParameters(), interaction);
    interaction.getParameters().clear();
    interaction.getParameters().addAll(interactionParameters);
  }
  if (synchronizeAnnotatedAttributes){
    synchronizeAnnotatedObjectCommons( interaction );
  }
}

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

sb.append(createUniquenessString(interaction.getCvInteractionType()));

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

private void synchronizeInteraction( Interaction interaction, boolean synchronizeAnnotatedAttributes ) {
  interaction.setCvInteractionType( synchronize( interaction.getCvInteractionType() ) );
  interaction.setCvInteractorType( synchronize( interaction.getCvInteractorType() ) );
  if (IntactCore.isInitializedAndDirty(interaction.getComponents())){
    Collection<Component> components = synchronizeCollection(interaction.getComponents());
    interaction.getComponents().clear();
    interaction.getComponents().addAll(components);
  }
  interaction.setBioSource( synchronize( interaction.getBioSource() ) );
  if (IntactCore.isInitializedAndDirty(interaction.getExperiments())){
    Collection<Experiment> experiment = synchronizeCollection(interaction.getExperiments());
    interaction.getExperiments().clear();
    interaction.getExperiments().addAll(experiment);
  }
  // cannot call setConfidences in interaction because of orphan relationship limitation
  if (IntactCore.isInitializedAndDirty(interaction.getConfidences())){
    Collection<Confidence> confidences = synchronizeConfidences(interaction.getConfidences(), interaction);
    interaction.getConfidences().clear();
    interaction.getConfidences().addAll(confidences);
  }
  // cannot call setParameters in interaction because of orphan relationship limitation
  if (IntactCore.isInitializedAndDirty(interaction.getParameters())){
    Collection<InteractionParameter> interactionParameters = synchronizeInteractionParameters(interaction.getParameters(), interaction);
    interaction.getParameters().clear();
    interaction.getParameters().addAll(interactionParameters);
  }
  if (synchronizeAnnotatedAttributes){
    synchronizeAnnotatedObjectCommons( interaction );
  }
}

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

sb.append(createUniquenessString(interaction.getCvInteractionType()));

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

protected void traverseInteraction(Interaction interaction, IntactVisitor ... visitors) {
  if (interaction == null) return;
  for (IntactVisitor visitor : visitors) {
    visitor.visitInteraction(interaction);
  }
  // check if this element has been traversed already, to avoid cyclic recursion
  if (recursionChecker.isAlreadyTraversed(interaction)) {
    return;
  }
  traverse(interaction.getCvInteractionType(), visitors);
  traverse(interaction.getExperiments(), visitors);
  traverse(interaction.getComponents(), visitors);
  traverse(interaction.getConfidences(), visitors);
  traverse(interaction.getParameters(), visitors);
}

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

protected void traverseInteraction(Interaction interaction, IntactVisitor ... visitors) {
  if (interaction == null) return;
  for (IntactVisitor visitor : visitors) {
    visitor.visitInteraction(interaction);
  }
  // check if this element has been traversed already, to avoid cyclic recursion
  if (recursionChecker.isAlreadyTraversed(interaction)) {
    return;
  }
  traverse(interaction.getCvInteractionType(), visitors);
  traverse(interaction.getExperiments(), visitors);
  traverse(interaction.getComponents(), visitors);
  traverse(interaction.getConfidences(), visitors);
  traverse(interaction.getParameters(), visitors);
}

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

clone.setCvInteractionType(clone(interaction.getCvInteractionType()));
clone.setCvInteractorType(clone(interaction.getCvInteractorType()));

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

clone.setCvInteractionType(clone(interaction.getCvInteractionType()));
clone.setCvInteractorType(clone(interaction.getCvInteractorType()));

相关文章