ilog.rules.factory

Class IlrPropertyMatchTest

  • All Implemented Interfaces:
    ilog.rules.factory.IlrSourceElement, IlrTest, java.io.Serializable


    public class IlrPropertyMatchTest
    extends IlrBinaryTest
    This class represents a property match test of the rule language. A property match test may be either a "match up," a "match down," "match updown," or a "match" test.

    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:
    Serialized Form
    • Constructor Detail

      • IlrPropertyMatchTest

        public IlrPropertyMatchTest(int kind,
                            IlrValue first,
                            IlrValue second)
        Constructs a property match test. This test involves two values.
        Parameters:
        kind - The kind of test, as defined in IlrBinaryTester. The possible values are IlrBinaryTester.MATCH, IlrBinaryTester.MATCH_UP, IlrBinaryTester.MATCH_DOWN and IlrBinaryTester.MATCH_UPDOWN. In case an incorrect value is given, an IllegalArgumentException is thrown.
        first - The first argument value.
        second - The second argument value.
    • Method Detail

      • setHierarchy

        public void setHierarchy(ilog.rules.factory.IlrHierarchicalPropertyElement hierarchy)
        Sets the hierarchy attached to the test.
        Parameters:
        hierarchy - The hierarchy attached to the test.
      • getHierarchy

        public ilog.rules.factory.IlrHierarchicalPropertyElement getHierarchy()
        Returns the hierarchy attached to the test.
        Returns:
        The hierarchy attached to the test.
      • getTester

        public IlrBinaryTester getTester()
        Determines and returns the binary tester used to perform the test. The tester is determined using the types of the arguments and the kind of the test. If this method returns null, the test is not a valid test expression.
        Overrides:
        getTester in class IlrBinaryTest
        Returns:
        A binary tester, or null if the test is not valid.

© Copyright IBM Corp. 1987, 2017