Class Operator

    • Field Detail

      • EQUAL

        public static final Operator EQUAL
      • NOT_EQUAL

        public static final Operator NOT_EQUAL
      • LESS

        public static final Operator LESS
      • LESS_OR_EQUAL

        public static final Operator LESS_OR_EQUAL
      • GREATER

        public static final Operator GREATER
      • GREATER_OR_EQUAL

        public static final Operator GREATER_OR_EQUAL
      • CONTAINS

        public static final Operator CONTAINS
      • NOT_CONTAINS

        public static final Operator NOT_CONTAINS
      • EXCLUDES

        public static final Operator EXCLUDES
      • NOT_EXCLUDES

        public static final Operator NOT_EXCLUDES
      • MEMBEROF

        public static final Operator MEMBEROF
      • NOT_MEMBEROF

        public static final Operator NOT_MEMBEROF
      • MATCHES

        public static final Operator MATCHES
      • NOT_MATCHES

        public static final Operator NOT_MATCHES
      • SOUNDSLIKE

        public static final Operator SOUNDSLIKE
      • NOT_SOUNDSLIKE

        public static final Operator NOT_SOUNDSLIKE
    • Constructor Detail

      • Operator

        public Operator()
    • Method Detail

      • addOperatorToRegistry

        public static Operator addOperatorToRegistry​(String operatorId,
                                                     boolean isNegated)
        Creates a new Operator instance for the given parameters, adds it to the registry and return it
        Parameters:
        operatorId - the identification symbol of the operator
        isNegated - true if it is negated
        Returns:
        the newly created operator
      • determineOperator

        public static Operator determineOperator​(String operatorId,
                                                 boolean isNegated)
        Returns the operator instance for the given parameters
        Parameters:
        operatorId - the identification symbol of the operator
        isNegated - true if it is negated
        Returns:
        the operator in case it exists
      • getOperatorString

        public String getOperatorString()
        Specified by:
        getOperatorString in interface org.kie.api.runtime.rule.Operator
      • isNegated

        public boolean isNegated()
        Specified by:
        isNegated in interface org.kie.api.runtime.rule.Operator
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object