uk.ac.ebi.intact.model.Feature.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(153)

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

Feature.<init>介绍

[英]This constructor should not be used as it could result in objects with invalid state. It is here for object mapping purposes only and if possible will be made private.
[中]不应使用此构造函数,因为它可能导致对象的状态无效。此处仅用于对象映射目的,如有可能,将设置为私有。

代码示例

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

public Feature createFeature(String shortLabel, CvFeatureType featureType) {
  Interaction interaction = createInteractionRandomBinary();
  Component component = interaction.getComponents().iterator().next();
  Feature feature = new Feature(getInstitution(), shortLabel, component, featureType);
  return feature;
}

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

public Feature createFeature(String shortLabel, CvFeatureType featureType) {
  Interaction interaction = createInteractionRandomBinary();
  Component component = interaction.getComponents().iterator().next();
  Feature feature = new Feature(getInstitution(), shortLabel, component, featureType);
  return feature;
}

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

public Feature createFeature(String shortLabel, CvFeatureType featureType) {
  Interaction interaction = createInteractionRandomBinary();
  Component component = interaction.getComponents().iterator().next();
  Feature feature = new Feature(getInstitution(), shortLabel, component, featureType);
  return feature;
}

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

public Feature cloneFeature(Feature feature) throws IntactClonerException {
  if (feature == null) return null;
  Feature clone = new Feature();
  clonerManager.addClone(feature, clone);
  clone.setOwner(clone(feature.getOwner()));
  clone.setShortLabel(feature.getShortLabel());
  clone.setCvFeatureType(clone(feature.getCvFeatureType()));
  clone.setCvFeatureIdentification(clone(feature.getCvFeatureIdentification()));
  if (isCollectionClonable(feature.getRanges())) {
    Collection<Range> ranges = IntactCore.ensureInitializedRanges(feature);
    for (Range range : ranges) {
      clone.addRange(clone(range));
    }
  }
  clone.setComponent(clone(feature.getComponent()));
  return clone;
}

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

public Feature cloneFeature(Feature feature) throws IntactClonerException {
  if (feature == null) return null;
  Feature clone = new Feature();
  clonerManager.addClone(feature, clone);
  clone.setOwner(clone(feature.getOwner()));
  clone.setShortLabel(feature.getShortLabel());
  clone.setCvFeatureType(clone(feature.getCvFeatureType()));
  clone.setCvFeatureIdentification(clone(feature.getCvFeatureIdentification()));
  if (isCollectionClonable(feature.getRanges())) {
    Collection<Range> ranges = IntactCore.ensureInitializedRanges(feature);
    for (Range range : ranges) {
      clone.addRange(clone(range));
    }
  }
  clone.setComponent(clone(feature.getComponent()));
  return clone;
}

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

Feature feature = new Feature( institution,
                featureTag.getShortlabel(),
                component,

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

Feature feature = new Feature( institution,
                featureTag.getShortlabel(),
                component,

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

Feature feature = new Feature( institution,
                featureTag.getShortlabel(),
                component,

相关文章