public void addOrReplaceProperty(IPropertySpecification property) { IPropertySpecification existing = null; foreach (IPropertySpecification prop in properties) { if (prop.getPropertyId().Equals(property.getPropertyId())) { existing = prop; } } if (existing != null) { properties.Remove(existing); } properties.Add(property); }
public ITransformedPropertySpecification transform(IPropertySpecification property) { IFormula formulaForTransformation = expressionParser.parseExpression(property.getFormalRepresentation(), property.getPropertyId()); return(transformFormula(formulaForTransformation)); }