|
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.RuleSet
A RuleSet has a name and a table of Rules to be edited.
The RuleSet class may be used to edit an existing rule set, or to create a new one, depending on which constructor is used.
| Field Summary | |
static java.lang.String |
PROP_CUSTOM_MODE |
static java.lang.String |
PROP_EXISTING_NAME |
static java.lang.String |
PROP_NAME |
static java.lang.String |
PROP_RULE_TABLE |
| Constructor Summary | |
RuleSet(RuleDictionary ruleDictionary)Constructor used to create a new RuleSet |
|
RuleSet(RuleDictionary ruleDictionary, java.lang.String name)Constructor used to edit an existing rule set |
|
| Method Summary | |
boolean |
getCustomMode()Get custom editing mode. |
java.lang.String |
getExistingName() |
java.lang.String |
getName()Get the name of the rule set. |
java.lang.String |
getNameConstraint() |
java.lang.String[] |
getNameOptions() |
int |
getNameSelected() |
java.lang.String[] |
getPropertyNames() |
Rule |
getRule(int index)Get the Rule at the given index |
Rule |
getRule(java.lang.String id)Get the Rule with the given ID |
Rule |
getRuleByName(java.lang.String name)Get the Rule with the given name |
RuleTable |
getRuleTable()Get the table of rules used to access and rearrange rules in the RuleSet. |
void |
setCustomMode(boolean customMode)Set custom editing mode. |
void |
setName(java.lang.String name)Set the name of the rule set. |
void |
setNameConstraint(java.lang.String nameConstraint) |
void |
setNameOptions(java.lang.String[] nameOptions) |
void |
update()Validates the RuleSet then write it back to the dictionary |
void |
updateAs(java.lang.String newName)Validates the RuleSet then write it back to the dictionary with the new name. |
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, 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_NAME
public static final java.lang.String PROP_EXISTING_NAME
public static final java.lang.String PROP_RULE_TABLE
public static final java.lang.String PROP_CUSTOM_MODE
| Constructor Detail |
public RuleSet(RuleDictionary ruleDictionary)
public RuleSet(RuleDictionary ruleDictionary,
java.lang.String name)
throws RuleEditorSDKException
| Method Detail |
public Rule getRule(int index)
public Rule getRule(java.lang.String id)
public Rule getRuleByName(java.lang.String name)
public void validate()
throws RuleEditorException,
RuleEditorSDKException
RuleComponentvalidate in class RuleComponentRuleEditorSDKException - incorrect SDK usageRuleEditorException - for user input errors
public void updateAs(java.lang.String newName)
throws RuleEditorException,
RuleEditorSDKException
newName - the new name for the rule set.RuleEditorExceptionRuleEditorSDKException
public void update()
throws RuleEditorException,
RuleEditorSDKException
RuleEditorExceptionRuleEditorSDKExceptionpublic java.lang.String[] getPropertyNames()
getPropertyNames in class RuleComponentpublic java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getNameConstraint()
public void setNameConstraint(java.lang.String nameConstraint)
public java.lang.String[] getNameOptions()
public void setNameOptions(java.lang.String[] nameOptions)
public int getNameSelected()
public java.lang.String getExistingName()
public RuleTable getRuleTable()
public boolean getCustomMode()
public void setCustomMode(boolean customMode)
|
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 | |||||||||