| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.extension.rules.Rule
oracle.ide.extension.rules.SimpleRule
public class SimpleRule
A SimpleRule consists of a reference to a RuleType and a set of parameters. When evaluate() is called, the RuleType's RuleFunction is instantiated and the RuleFunction's evaluate method is passed the parameters (resulting in a boolean return value). This class is the parsed representation of the <rule> element in extension.xml files.
| Constructor Summary | |
|---|---|
SimpleRule(java.lang.String id,
           Extension extension,
           RuleType type)
 | 
|
| Method Summary | |
|---|---|
 boolean | 
addParameter(RuleFunctionParameter parameter)
Attempts to add a parameter to this Rule.  | 
 boolean | 
evaluate(RuleEvaluationContext ruleContext)
 | 
 RuleType | 
getType()
 | 
 boolean | 
hasParameter(java.lang.String name)
 | 
 boolean | 
matchesType(java.util.Set<java.lang.String> ruleTypeIdSet)
Returns true if the type of this rule is identified in the given ruleTypeId set  | 
| Methods inherited from class oracle.ide.extension.rules.Rule | 
|---|
getExtension, getId | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SimpleRule(java.lang.String id,
                  Extension extension,
                  RuleType type)
| Method Detail | 
|---|
public RuleType getType()
public boolean hasParameter(java.lang.String name)
public boolean addParameter(RuleFunctionParameter parameter)
parameter - 
public boolean evaluate(RuleEvaluationContext ruleContext)
                 throws RuleEvaluationException
evaluate in class RuleRuleEvaluationExceptionpublic boolean matchesType(java.util.Set<java.lang.String> ruleTypeIdSet)
Rule
matchesType in class Rule
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||