org.openorb.notify.filter
Class FilterConstraint

java.lang.Object
  extended by org.openorb.notify.filter.FilterConstraint

public class FilterConstraint
extends java.lang.Object

To evaluate Filter constraints, we reuse the OpenORB Evaluator Utility. However, we encapsulate it to provide some additional features for the Notification Service.

Author:
Olivier Modica

Constructor Summary
FilterConstraint(java.lang.String stringifiedConstraint, org.openorb.constraint.Constraint constraint)
          Default constructor
 
Method Summary
 boolean evaluate(org.omg.CORBA.Any event)
          This operation is invoked to evaluate a notify constraint.
 boolean evaluate(Property[] properties)
          This operation is invoked to evaluate a notify constraint.
 java.lang.String getConstraintExpr()
          Get the constraint expression as string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterConstraint

public FilterConstraint(java.lang.String stringifiedConstraint,
                        org.openorb.constraint.Constraint constraint)
Default constructor

Method Detail

getConstraintExpr

public java.lang.String getConstraintExpr()
Get the constraint expression as string


evaluate

public boolean evaluate(org.omg.CORBA.Any event)
                 throws org.openorb.constraint.InvalidValue
This operation is invoked to evaluate a notify constraint.

Throws:
org.openorb.constraint.InvalidValue

evaluate

public boolean evaluate(Property[] properties)
                 throws org.openorb.constraint.InvalidValue
This operation is invoked to evaluate a notify constraint.

Throws:
org.openorb.constraint.InvalidValue