Skip to content
Snippets Groups Projects
Commit 538cc5ab authored by Piotr Gawron's avatar Piotr Gawron
Browse files

all feature tvalues have occurence set to 1

parent 53821d73
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!591Resolve "SBML Reaction glyphs missing curve segment result in NullPointer exception"
......@@ -218,6 +218,7 @@ public class SbmlSpeciesExporter extends SbmlElementExporter<Species, org.sbml.j
feature = new SpeciesFeatureType();
feature.setName(featureName);
feature.setId(featureId);
feature.setOccur(1);
speciesType.getListOfSpeciesFeatureTypes().add(feature);
}
return feature;
......@@ -247,6 +248,7 @@ public class SbmlSpeciesExporter extends SbmlElementExporter<Species, org.sbml.j
if (feature == null) {
feature = multiExtension.createSpeciesFeature();
feature.setSpeciesFeatureType(fetureType.getId());
feature.setOccur(1);
}
SpeciesFeatureValue value = new SpeciesFeatureValue();
value.setValue(possibleValue.getId());
......@@ -462,6 +464,7 @@ public class SbmlSpeciesExporter extends SbmlElementExporter<Species, org.sbml.j
feature = new SpeciesFeatureType();
feature.setName(bioEntityFeature.getFeatureName());
feature.setId(MultiPackageNamingUtils.getFeatureId(clazz, bioEntityFeature));
feature.setOccur(1);
if (bioEntityFeature.getDefaultValue() != null) {
addPosibleValueToFeature(feature, bioEntityFeature.getDefaultValue());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment