Class LegacyLogicEvaluator

java.lang.Object
org.compiere.util.LegacyLogicEvaluator

public final class LegacyLogicEvaluator extends Object
Deprecated.
Legacy Logic Expression Evaluator
Version:
$Id: Evaluator.java,v 1.3 2006/07/30 00:54:36 jjanke Exp $
Author:
Jorg Janke
  • Method Details

    • evaluateLogic

      public static boolean evaluateLogic(Evaluatee source, String logic)
      Deprecated.
      Evaluate Logic.
      
      	format		:= <expression> [<logic> <expression>]
      	expression	:= @<context>@<exLogic><value>
      	logic		:= <|> | <&>
        exLogic		:= <=> | <!> | <^> | <<> | <>>
      
      	context		:= any global or window context
      	value		:= strings can be with ' or "
      	logic operators	:= AND or OR with the prevoius result from left to right
      
      	Example	'@AD_Table@=Test | @Language@=GERGER
        
      Parameters:
      source - class implementing get_ValueAsString(variable)
      logic - logic string
      Returns:
      logic result