Class VariationPoint<T>
- java.lang.Object
-
- com.nomagic.magicdraw.variants.variationpoints.VariationPoint<T>
-
- Direct Known Subclasses:
PropertyVariationPoint
@OpenApiAll public abstract class VariationPoint<T> extends java.lang.Object
Marks that element has a variable feature that can be transformed. It's evaluator provides concrete value that should be set to the element's variable feature during variant realization
-
-
Constructor Summary
Constructors Constructor Description VariationPoint(Element element, Evaluator<T> evaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Element
getElement()
protected Evaluator<T>
getEvaluator()
T
getValue(java.lang.Object currentValue)
Returns transformed value for the given elementjava.lang.String
toString()
-
-
-
Method Detail
-
getElement
public Element getElement()
-
getValue
@CheckForNull public T getValue(@CheckForNull java.lang.Object currentValue)
Returns transformed value for the given element- Returns:
- calculated value to be applied during transformation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-