|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.extension.rules.RuleFunction
public abstract class RuleFunction
Abstract base class for all rule function classes. A RuleFunction class provides an implementation of the evaluate() method that returns true or false given a RuleEvaluationContext and a set of parameters.
Constructor Summary | |
---|---|
RuleFunction()
|
Method Summary | |
---|---|
abstract boolean |
evaluate(RuleEvaluationContext ruleContext,
java.util.Map<java.lang.String,RuleFunctionParameter> parameters)
|
protected RuleFunctionParameter |
getRequiredParameterOrThrow(java.util.Map<java.lang.String,RuleFunctionParameter> parameters,
java.lang.String paramName)
Helper method that retrieves the parameter matching the given paramName from the parameters map and throws a RuleEvaluationException if no such parameter is contained in the map |
protected boolean |
matchesNameOfClassOrAncestor(java.lang.Class clazz,
java.lang.String className)
Returns true if the given className matches the class name of the given Class object, or any of the supertypes in the class heirarchy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleFunction()
Method Detail |
---|
public abstract boolean evaluate(RuleEvaluationContext ruleContext, java.util.Map<java.lang.String,RuleFunctionParameter> parameters) throws RuleEvaluationException
RuleEvaluationException
protected final RuleFunctionParameter getRequiredParameterOrThrow(java.util.Map<java.lang.String,RuleFunctionParameter> parameters, java.lang.String paramName) throws RuleEvaluationException
RuleEvaluationException
protected final boolean matchesNameOfClassOrAncestor(java.lang.Class clazz, java.lang.String className)
clazz
- className
-
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |