Package org.faktorips.runtime.model.type
Class Formula
java.lang.Object
org.faktorips.runtime.model.type.ModelElement
org.faktorips.runtime.model.type.TypePart
org.faktorips.runtime.model.type.Formula
Represents a formula in a
ProductCmptType.- Since:
- 24.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the formula.getFormulaText(IProductComponent productComponent, Calendar effectiveDate) Returns the formula text of this formula in the given product component.booleanvoidsetFormulaText(IProductComponent productComponent, Calendar effectiveDate, String formulaText) Sets the formula text of this formula in the given product component.toString()Methods inherited from class org.faktorips.runtime.model.type.TypePart
getMessageHelper, getMessageKey, getModelType, getType, getTypeNameMethods inherited from class org.faktorips.runtime.model.type.ModelElement
createMessageHelper, getDeprecation, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRelevantProductObject, invokeField, invokeMethod, isDeprecated
-
Constructor Details
-
Formula
-
-
Method Details
-
isChangingOverTime
public boolean isChangingOverTime() -
getFormulaText
public String getFormulaText(IProductComponent productComponent, @CheckForNull Calendar effectiveDate) Returns the formula text of this formula in the given product component.- Parameters:
productComponent- a product component based on the product component type this formula belongs to.effectiveDate- (optional) the date to use for selecting the product component's generation, if this formulaisChangingOverTime()
-
setFormulaText
public void setFormulaText(IProductComponent productComponent, @CheckForNull Calendar effectiveDate, String formulaText) Sets the formula text of this formula in the given product component.- Parameters:
productComponent- a product component based on the product component type this formula belongs to.effectiveDate- (optional) the date to use for selecting the product component's generation, if this formulaisChangingOverTime()formulaText- the new formula text
-
getFormulaName
Returns the name of the formula. -
toString
- Overrides:
toStringin classModelElement
-