ilog.rules.factory

Class IlrCollectCondition

  • All Implemented Interfaces:
    java.io.Serializable


    public class IlrCollectCondition
    extends IlrClassCondition
    This class represents a collect class condition of the rule language.

    Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of IBM Decision Server.

    See Also:
    IlrCollectElement, Serialized Form
    • Constructor Detail

      • IlrCollectCondition

        public IlrCollectCondition(IlrCollectElement element)
        Constructs a collect condition using a default collector. The condition collects element defined by the collect element passed as argument.
        Parameters:
        element - The collect element of the condition.
      • IlrCollectCondition

        public IlrCollectCondition(IlrCollectElement element,
                           IlrValue collector)
        Constructs a collect condition using a collector passed as argument. The condition collects element defined by the collect element passed as argument.
        Parameters:
        element - The collect element of the condition.
        collector - A collector.
    • Method Detail

      • bindObject

        public IlrVariable bindObject(java.lang.String name)
        Creates a variable to represent the binding of the object matched by this condition. The object matched by this condition is an IlrCollection.
        Parameters:
        name - The name of the variable binding.
        Returns:
        The variable which represents the binding of the object matched by this condition.
      • getObjectBinding

        public final IlrVariable getObjectBinding()
        Gets the object binding of this condition.
        Returns:
        The variable which represents the binding of the object matched by this condition, or null if the object is not bound.
      • getCollector

        public IlrValue getCollector()
        Gets the collector of this condition.
        Returns:
        The IlrValue which represents the collector.
      • getCollectElement

        public IlrCollectElement getCollectElement()
        Gets the collection element of this condition.
        Returns:
        The IlrCollectElement bound to this condition.
      • hasDefaultCollector

        public boolean hasDefaultCollector()
        Check whether the collector is the default collector.
        Returns:
        true if the collector is the default one, false otherwise.
      • exploreCondition

        public java.lang.Object exploreCondition(IlrFactoryExplorer explorer)
        Explores the collect condition using a factory explorer and returns an object as a result.
        Specified by:
        exploreCondition in class IlrCondition
        Parameters:
        explorer - The factory explorer.
        Returns:
        An object which represents the result of the exploration, or null if the method does not return a value.

© Copyright IBM Corp. 1987, 2017