Class 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 Detail

      • VariationPoint

        public VariationPoint​(Element element,
                              Evaluator<T> evaluator)
    • 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
      • getEvaluator

        protected Evaluator<T> getEvaluator()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object