Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.extension.rules.functions
Class PropertyHasValue

java.lang.Object
  extended by oracle.ide.extension.rules.RuleFunction
      extended by oracle.ide.extension.rules.functions.PropertyHasValue


public final class PropertyHasValue
extends RuleFunction

Returns true if there is a system property with the supplied name whose value matches the expected value. The and parameters are required, and the parameter value supplied is the expected system property value, ignoring case.

This rule takes an optional parameter which, if true, will test whether the value of the system property contains, ignoring case, the supplied property value, rather than matching the entire string. Boolean.valueOf(String) is used to determine whether the value supplied to is true or false.


Constructor Summary
PropertyHasValue()
           

 

Method Summary
 boolean evaluate(RuleEvaluationContext ruleContext, java.util.Map<java.lang.String,RuleFunctionParameter> parameters)
           

 

Methods inherited from class oracle.ide.extension.rules.RuleFunction
getRequiredParameterOrThrow, matchesNameOfClassOrAncestor

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PropertyHasValue

public PropertyHasValue()

Method Detail

evaluate

public boolean evaluate(RuleEvaluationContext ruleContext,
                        java.util.Map<java.lang.String,RuleFunctionParameter> parameters)
                 throws RuleEvaluationException
Specified by:
evaluate in class RuleFunction
Throws:
RuleEvaluationException

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.