Class ComponentConditionProperty

    • Method Detail

      • property

        public final String property()

        The name of the conditional property.

        Returns:
        The name of the conditional property.
      • field

        public final String field()

        The name of a field. Specify this when the property is a data model.

        Returns:
        The name of a field. Specify this when the property is a data model.
      • operator

        public final String operator()

        The operator to use to perform the evaluation, such as eq to represent equals.

        Returns:
        The operator to use to perform the evaluation, such as eq to represent equals.
      • operand

        public final String operand()

        The value of the property to evaluate.

        Returns:
        The value of the property to evaluate.
      • then

        public final ComponentProperty then()

        The value to assign to the property if the condition is met.

        Returns:
        The value to assign to the property if the condition is met.
      • elseValue

        public final ComponentProperty elseValue()

        The value to assign to the property if the condition is not met.

        Returns:
        The value to assign to the property if the condition is not met.
      • operandType

        public final String operandType()

        The type of the property to evaluate.

        Returns:
        The type of the property to evaluate.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)