ilog.rules.factory

Class IlrClassCondition

    • Method Detail

      • getEnumerator

        public final IlrValue getEnumerator()
        Gets the enumerator value of this class condition. The enumerator value is the expression which follows from or in clauses of the rule language.
        Returns:
        A value, or null if the condition does not have a from or in clause.
      • getEnumeratorClause

        public final java.lang.String getEnumeratorClause()
        Gets the enumerator clause. This can be the string "from", "in" or null.
        Returns:
        The enumerator clause, or null if the condition does not have an enumerator.
      • setEnumerator

        public final void setEnumerator(java.lang.String clause,
                                        IlrValue value)
        Sets an enumerator clause. The first argument should be one the predefined keywords: "from" or "in".
        Parameters:
        clause - Can be "from" or "in".
        value - A value, enumerator of the condition.
      • getField

        public final IlrFieldValue getField(java.lang.String fieldName)
        Creates a field value which represents a field of the object matched by this condition.
        Parameters:
        fieldName - The name of the field.
        Returns:
        A field value.
      • bindField

        public final IlrVariable bindField(java.lang.String name,
                                           java.lang.String fieldName)
        Creates a variable which represents the binding of a field value.
        Parameters:
        name - The name of the variable.
        fieldName - The name of the field.
        Returns:
        A variable bound to the field value.

© Copyright IBM Corp. 1987, 2021