|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.util.AbstractMap
java.util.HashMap
oracle.rules.sdk.editor.ruleset.RuleComponent
oracle.rules.sdk.editor.ruleset.SimpleTest
A SimpleTest consists of 4 items: left expression, comparison operator, right expression, conjunction.
Example:
Order.total > 500 AND... "Order.total" is the left expression, ">=" is the comparison operator, "500" is the right expression, "AND" is the conjuntion.
On output, valid choices for the context of the PatternTest can be obtained by calling getLeft().getSingleTermValueOptions(), or getOperatorOptions(), etc.
| Field Summary | |
static java.lang.String |
PROP_CONJUNCTION |
static java.lang.String |
PROP_LEFT |
static java.lang.String |
PROP_OPERATOR |
static java.lang.String |
PROP_RIGHT |
| Method Summary | |
java.lang.Object |
get(java.lang.Object key)Generic property getter inheirited from RuleComponent. |
java.lang.String |
getConjunction()Get {the conjunction (and/or) combining this pattern with the next in the table. |
java.lang.String |
getConjunctionConstraint() |
java.lang.String[] |
getConjunctionOptions() |
int |
getConjunctionSelected() |
Expression |
getLeft() |
java.lang.String |
getOperator() |
java.lang.String |
getOperatorConstraint() |
java.lang.String[] |
getOperatorOptions() |
int |
getOperatorSelected() |
java.lang.String[] |
getPropertyNames() |
Expression |
getRight() |
void |
setConjunction(java.lang.String conjunction)Set {the conjunction (and/or) combining this pattern with the next in the table. |
void |
setConjunctionConstraint(java.lang.String conjunctionConstraint) |
void |
setConjunctionOptions(java.lang.String[] conjunctionOptions) |
void |
setOperator(java.lang.String operator) |
void |
setOperatorConstraint(java.lang.String operatorConstraint) |
void |
setOperatorOptions(java.lang.String[] operatorOptions) |
void |
validate()Validates the correctness of the RuleComponent and all RuleComponents below it. |
| Methods inherited from class oracle.rules.sdk.editor.ruleset.RuleComponent |
clear, discardCopy, get, getConstraint, getConstraintList, getCustom, getDescription, getID, getOptions, getParent, getParentTable, getRange, getRuleDictionary, getSelected, put, remove, restoreCopy, saveCopy, setCustom, setDescription, setRuleDictionary, toString |
| Methods inherited from class java.util.HashMap |
clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Field Detail |
public static final java.lang.String PROP_LEFT
public static final java.lang.String PROP_OPERATOR
public static final java.lang.String PROP_RIGHT
public static final java.lang.String PROP_CONJUNCTION
| Method Detail |
public java.lang.Object get(java.lang.Object key)
RuleComponentRuleComponent.
Please see the specific bean class for a list of properties.
get in interface java.util.Mapget in class RuleComponentkey - a String containing the property name to be fetched.
public void validate()
throws RuleEditorException,
RuleEditorSDKException
RuleComponentvalidate in class RuleComponentRuleEditorSDKException - incorrect SDK usageRuleEditorException - for user input errorspublic java.lang.String[] getPropertyNames()
getPropertyNames in class RuleComponentpublic Expression getLeft()
public java.lang.String getOperator()
public void setOperator(java.lang.String operator)
public java.lang.String getOperatorConstraint()
public void setOperatorConstraint(java.lang.String operatorConstraint)
public java.lang.String[] getOperatorOptions()
public void setOperatorOptions(java.lang.String[] operatorOptions)
public int getOperatorSelected()
public Expression getRight()
public java.lang.String getConjunction()
Util.CONJUNCTION_AND if not setpublic void setConjunction(java.lang.String conjunction)
Util.CONJUNCTION_AND if not setpublic java.lang.String getConjunctionConstraint()
public void setConjunctionConstraint(java.lang.String conjunctionConstraint)
public java.lang.String[] getConjunctionOptions()
public void setConjunctionOptions(java.lang.String[] conjunctionOptions)
public int getConjunctionSelected()
|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||