Interface SimpleExpression

  • All Superinterfaces:
    Identifiable

    public interface SimpleExpression
    extends Identifiable
    Represents a simple boolean expression that can be easily configured by the user. Such an expression consists of a fragment, an operator and a value. The value of the fragment is to be compared with the specified value using the specified operator, typically resulting in a boolean value. The actual configured parameter for a form logic component or a form.
    • Method Detail

      • getFragment

        String getFragment()
        Returns the Fragment of which the value should be compared.
        Returns:
        the Fragment of which the value should be compared
      • getValue

        String getValue()
        Returns the value to compare the value of the fragment to.
        Returns:
        the value to compare the value of the fragment to
      • setFragment

        void setFragment​(String fragmentIdentifier)
        Sets the Fragment of which the value should be compared.
        Parameters:
        fragmentIdentifier - the identifier of the Fragment of which the value should be compared.
      • setOperator

        void setOperator​(ExpressionOperator operator)
        Sets the operator to be used in the comparison.
        Parameters:
        operator - the operator to be used in the comparison
        See Also:
        ExpressionOperator
      • setValue

        void setValue​(String value)
        Sets the value to which the value of the fragment should be compared.
        Parameters:
        value - the value to which the value of the fragment should be compared
      • getExpression

        String getExpression()
        Returns the actual JavaScript expression composed of the fragment, operator and value. To be used clientside and server-side.
        Returns:
        the actual JavaScript expression composed of the fragment, operator and value