org.openorb.constraint.object
Class TwiddleOperator

java.lang.Object
  extended by org.openorb.constraint.object.Base
      extended by org.openorb.constraint.object.TwiddleOperator

public class TwiddleOperator
extends Base

This class is a constraint tree node that represents the '~' (substring) operator. This operator tests whether the string on the left appears as a substring of the string on the right. e.g. 'part' ~ 'departments' evaluates to TRUE

Author:
Jerome Daniel

Constructor Summary
TwiddleOperator(Base opA, Base opB)
          Constructor
 
Method Summary
 java.lang.Object evaluate()
          This operation is invoked by the tree evaluator to get this node value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwiddleOperator

public TwiddleOperator(Base opA,
                       Base opB)
Constructor

Method Detail

evaluate

public java.lang.Object evaluate()
                          throws InvalidValue
This operation is invoked by the tree evaluator to get this node value.

Specified by:
evaluate in class Base
Throws:
InvalidValue