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; }
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; }
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; }
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; }
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; }
Feature feature = new Feature( institution, featureTag.getShortlabel(), component,
Feature feature = new Feature( institution, featureTag.getShortlabel(), component,
Feature feature = new Feature( institution, featureTag.getShortlabel(), component,