Rule Execution Server API

ilog.rules.factory
Class IlrPropertyMatchTest

java.lang.Object
  extended by ilog.rules.factory.IlrBaseTest
      extended by ilog.rules.factory.IlrBinaryTest
          extended by ilog.rules.factory.IlrPropertyMatchTest
All Implemented Interfaces:
ilog.rules.factory.IlrSourceElement, IlrTest, 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 Summary
IlrPropertyMatchTest(int kind, IlrValue first, IlrValue second)
          Constructs a property match test.
 
Method Summary
 IlrHierarchicalPropertyElement getHierarchy()
          Returns the hierarchy attached to the test.
 IlrBinaryTester getTester()
          Determines and returns the binary tester used to perform the test.
 void setHierarchy(IlrHierarchicalPropertyElement hierarchy)
          Sets the hierarchy attached to the test.
 
Methods inherited from class ilog.rules.factory.IlrBinaryTest
exploreTest, getFirstArgument, getKind, getSecondArgument, setFirstArgument, setKind, setSecondArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(IlrHierarchicalPropertyElement hierarchy)
Sets the hierarchy attached to the test.

Parameters:
hierarchy - The hierarchy attached to the test.

getHierarchy

public 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.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013